projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a41c7b4
)
Fix an off-by-one error that broke Prolangs/deriv2 with llc on x86
author
Chris Lattner
<sabre@nondot.org>
Sat, 7 Apr 2007 20:19:08 +0000
(20:19 +0000)
committer
Chris Lattner
<sabre@nondot.org>
Sat, 7 Apr 2007 20:19:08 +0000
(20:19 +0000)
and Prolangs-C/cdecl
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@35749
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Transforms/IPO/SimplifyLibCalls.cpp
patch
|
blob
|
history
diff --git
a/lib/Transforms/IPO/SimplifyLibCalls.cpp
b/lib/Transforms/IPO/SimplifyLibCalls.cpp
index a3be34577f89e22aef07263ef7a4e7147b03562d..8aed1e8103be9294d52148c8aa92387ae09daab7 100644
(file)
--- a/
lib/Transforms/IPO/SimplifyLibCalls.cpp
+++ b/
lib/Transforms/IPO/SimplifyLibCalls.cpp
@@
-780,7
+780,7
@@
public:
// do the concatenation for us.
Value *MemcpyOps[] = {
Dst, Src,
- ConstantInt::get(SLC.getIntPtrType(), SrcLen), // length including nul.
+ ConstantInt::get(SLC.getIntPtrType(), SrcLen
+1
), // length including nul.
ConstantInt::get(Type::Int32Ty, 1) // alignment
};
new CallInst(SLC.get_memcpy(), MemcpyOps, 4, "", CI);