The wrong parameter was being tested to deturmine i32 vs i64

llvm-svn: 31431
This commit is contained in:
Andrew Lenharth 2006-11-03 22:45:50 +00:00
parent 1a81dcf240
commit c2f822392c

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