diff options
author | Nick Lewycky <nicholas@mxc.ca> | 2009-09-20 03:48:46 +0000 |
---|---|---|
committer | Nick Lewycky <nicholas@mxc.ca> | 2009-09-20 03:48:46 +0000 |
commit | d43737bd0935150de2e3f385ad8418f2f3a7d2a2 (patch) | |
tree | 030c94d00d8ce09dcc4625836ce8bd727869b1b4 /lib/VMCore/ConstantFold.cpp | |
parent | 8d5a831bfad4ec72b15c2cb6f6e894a1bd6e726a (diff) |
Remove dead store by taking a guess at what Chris meant. I wasn't able to
design a testcase that would tickle this behaviour.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@82357 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/VMCore/ConstantFold.cpp')
-rw-r--r-- | lib/VMCore/ConstantFold.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/VMCore/ConstantFold.cpp b/lib/VMCore/ConstantFold.cpp index 7bf4f094e8..773a908cf8 100644 --- a/lib/VMCore/ConstantFold.cpp +++ b/lib/VMCore/ConstantFold.cpp @@ -1241,12 +1241,11 @@ static ICmpInst::Predicate evaluateICmpRelation(LLVMContext &Context, // null pointer, do the comparison with the pre-casted value. if (V2->isNullValue() && (isa<PointerType>(CE1->getType()) || CE1->getType()->isInteger())) { - bool sgnd = isSigned; if (CE1->getOpcode() == Instruction::ZExt) isSigned = false; if (CE1->getOpcode() == Instruction::SExt) isSigned = true; return evaluateICmpRelation(Context, CE1Op0, Constant::getNullValue(CE1Op0->getType()), - sgnd); + isSigned); } break; |