diff options
author | Eli Friedman <eli.friedman@gmail.com> | 2010-08-09 20:49:43 +0000 |
---|---|---|
committer | Eli Friedman <eli.friedman@gmail.com> | 2010-08-09 20:49:43 +0000 |
commit | 4fffb345ed20bd144a31c1c1724cffb6f519b814 (patch) | |
tree | dc544fda11645c82e4dd413074c2fab1aea0ec8f /lib/Transforms | |
parent | ca3469e59ed9ba66acf5ed94789198647d0b1868 (diff) |
PR7853: fix a silly mistake introduced in r101899, and add a test to make sure
it doesn't regress again.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@110597 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms')
-rw-r--r-- | lib/Transforms/InstCombine/InstCombineCalls.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Transforms/InstCombine/InstCombineCalls.cpp b/lib/Transforms/InstCombine/InstCombineCalls.cpp index 52277a009d..0ebe3b4558 100644 --- a/lib/Transforms/InstCombine/InstCombineCalls.cpp +++ b/lib/Transforms/InstCombine/InstCombineCalls.cpp @@ -538,7 +538,7 @@ Instruction *InstCombiner::visitCallInst(CallInst &CI) { // X + 0 -> {X, false} if (RHS->isZero()) { Constant *V[] = { - UndefValue::get(II->getCalledValue()->getType()), + UndefValue::get(II->getArgOperand(0)->getType()), ConstantInt::getFalse(II->getContext()) }; Constant *Struct = ConstantStruct::get(II->getContext(), V, 2, false); |