mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-05 09:24:28 +00:00
Fix an off-by-one error that broke Prolangs/deriv2 with llc on x86
and Prolangs-C/cdecl git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@35749 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -780,7 +780,7 @@ public:
|
|||||||
// do the concatenation for us.
|
// do the concatenation for us.
|
||||||
Value *MemcpyOps[] = {
|
Value *MemcpyOps[] = {
|
||||||
Dst, Src,
|
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
|
ConstantInt::get(Type::Int32Ty, 1) // alignment
|
||||||
};
|
};
|
||||||
new CallInst(SLC.get_memcpy(), MemcpyOps, 4, "", CI);
|
new CallInst(SLC.get_memcpy(), MemcpyOps, 4, "", CI);
|
||||||
|
Reference in New Issue
Block a user