summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms
diff options
context:
space:
mode:
authorEli Friedman <eli.friedman@gmail.com>2010-08-09 20:49:43 +0000
committerEli Friedman <eli.friedman@gmail.com>2010-08-09 20:49:43 +0000
commitf99e7e664368ec8aa1490da2b29d67a502ad6192 (patch)
treebbcf86b27a42f8c0579e863a70d538cbac3a72fa /llvm/lib/Transforms
parent028d3e4d0fc16abb55ab566f909d9a30951a7325 (diff)
downloadbcm5719-llvm-f99e7e664368ec8aa1490da2b29d67a502ad6192.tar.gz
bcm5719-llvm-f99e7e664368ec8aa1490da2b29d67a502ad6192.zip
PR7853: fix a silly mistake introduced in r101899, and add a test to make sure
it doesn't regress again. llvm-svn: 110597
Diffstat (limited to 'llvm/lib/Transforms')
-rw-r--r--llvm/lib/Transforms/InstCombine/InstCombineCalls.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/InstCombine/InstCombineCalls.cpp b/llvm/lib/Transforms/InstCombine/InstCombineCalls.cpp
index 52277a009d5..0ebe3b45589 100644
--- a/llvm/lib/Transforms/InstCombine/InstCombineCalls.cpp
+++ b/llvm/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);
OpenPOWER on IntegriCloud