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 | 02bc2719c3736d11ae5957d37cff44bfc7671e76 (patch) | |
| tree | dc544fda11645c82e4dd413074c2fab1aea0ec8f /lib/Transforms | |
| parent | 3f9eaa45d1234c78626006a84793ce265d91bdd6 (diff) | |
| download | external_llvm-02bc2719c3736d11ae5957d37cff44bfc7671e76.zip external_llvm-02bc2719c3736d11ae5957d37cff44bfc7671e76.tar.gz external_llvm-02bc2719c3736d11ae5957d37cff44bfc7671e76.tar.bz2 | |
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 52277a0..0ebe3b4 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); |
