From: Andrew Lenharth Date: Fri, 3 Nov 2006 22:45:50 +0000 (+0000) Subject: The wrong parameter was being tested to deturmine i32 vs i64 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=8ed4c47d70117ff1ec2c0e06260bef2c88641887;p=oota-llvm.git 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 --- diff --git a/lib/Transforms/Scalar/InstructionCombining.cpp b/lib/Transforms/Scalar/InstructionCombining.cpp index 98c35ddb0cd..f00be24aad0 100644 --- a/lib/Transforms/Scalar/InstructionCombining.cpp +++ b/lib/Transforms/Scalar/InstructionCombining.cpp @@ -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