The wrong parameter was being tested to deturmine i32 vs i64
authorAndrew Lenharth <andrewl@lenharth.org>
Fri, 3 Nov 2006 22:45:50 +0000 (22:45 +0000)
committerAndrew Lenharth <andrewl@lenharth.org>
Fri, 3 Nov 2006 22:45:50 +0000 (22:45 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31431 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Transforms/Scalar/InstructionCombining.cpp

index 98c35ddb0cdfe16b1b7975d33c39924512feb7d6..f00be24aad0df0224369f86c4e594bdce20e64ac 100644 (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