mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-31 10:34:17 +00:00
The wrong parameter was being tested to deturmine i32 vs i64
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31431 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
0c7af7cbce
commit
8ed4c47d70
@ -6405,7 +6405,7 @@ Instruction *InstCombiner::visitCallInst(CallInst &CI) {
|
|||||||
if (GVSrc->isConstant()) {
|
if (GVSrc->isConstant()) {
|
||||||
Module *M = CI.getParent()->getParent()->getParent();
|
Module *M = CI.getParent()->getParent()->getParent();
|
||||||
const char *Name;
|
const char *Name;
|
||||||
if (CI.getCalledFunction()->getFunctionType()->getParamType(3) ==
|
if (CI.getCalledFunction()->getFunctionType()->getParamType(2) ==
|
||||||
Type::UIntTy)
|
Type::UIntTy)
|
||||||
Name = "llvm.memcpy.i32";
|
Name = "llvm.memcpy.i32";
|
||||||
else
|
else
|
||||||
|
Loading…
x
Reference in New Issue
Block a user