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 | f99e7e664368ec8aa1490da2b29d67a502ad6192 (patch) | |
| tree | bbcf86b27a42f8c0579e863a70d538cbac3a72fa /llvm/lib | |
| parent | 028d3e4d0fc16abb55ab566f909d9a30951a7325 (diff) | |
| download | bcm5719-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')
| -rw-r--r-- | llvm/lib/Transforms/InstCombine/InstCombineCalls.cpp | 2 |
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); |

