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:
Andrew Lenharth 2006-11-03 22:45:50 +00:00
parent 0c7af7cbce
commit 8ed4c47d70

View File

@ -6405,7 +6405,7 @@ Instruction *InstCombiner::visitCallInst(CallInst &CI) {
if (GVSrc->isConstant()) {
Module *M = CI.getParent()->getParent()->getParent();
const char *Name;
if (CI.getCalledFunction()->getFunctionType()->getParamType(3) ==
if (CI.getCalledFunction()->getFunctionType()->getParamType(2) ==
Type::UIntTy)
Name = "llvm.memcpy.i32";
else