summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorReid Spencer <rspencer@reidspencer.com>2006-12-23 10:21:26 +0000
committerReid Spencer <rspencer@reidspencer.com>2006-12-23 10:21:26 +0000
commit283e20708bbc7682cbcf1356abe1b59cda28b932 (patch)
tree8b6b05003cf7f3b0971385977ed46d713be271e2 /lib
parente4d87aa2de6e52952dca73716386db09aad5a8fd (diff)
downloadllvm-283e20708bbc7682cbcf1356abe1b59cda28b932.tar.gz
llvm-283e20708bbc7682cbcf1356abe1b59cda28b932.tar.bz2
llvm-283e20708bbc7682cbcf1356abe1b59cda28b932.tar.xz
Don't overload var names.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32752 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r--lib/VMCore/ConstantFold.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/VMCore/ConstantFold.cpp b/lib/VMCore/ConstantFold.cpp
index a7438fcde8..8fb02976fc 100644
--- a/lib/VMCore/ConstantFold.cpp
+++ b/lib/VMCore/ConstantFold.cpp
@@ -883,11 +883,11 @@ static ICmpInst::Predicate evaluateICmpRelation(Constant *V1, Constant *V2,
// null pointer, do the comparison with the pre-casted value.
if (V2->isNullValue() &&
(isa<PointerType>(CE1->getType()) || CE1->getType()->isIntegral())) {
- bool isSigned = CE1->getOpcode() == Instruction::ZExt ? false :
+ bool sgnd = CE1->getOpcode() == Instruction::ZExt ? false :
(CE1->getOpcode() == Instruction::SExt ? true :
(CE1->getOpcode() == Instruction::PtrToInt ? false : isSigned));
return evaluateICmpRelation(
- CE1Op0, Constant::getNullValue(CE1Op0->getType()), isSigned);
+ CE1Op0, Constant::getNullValue(CE1Op0->getType()), sgnd);
}
// If the dest type is a pointer type, and the RHS is a constantexpr cast
@@ -898,11 +898,11 @@ static ICmpInst::Predicate evaluateICmpRelation(Constant *V1, Constant *V2,
if (CE2->isCast() && isa<PointerType>(CE1->getType()) &&
CE1->getOperand(0)->getType() == CE2->getOperand(0)->getType() &&
CE1->getOperand(0)->getType()->isIntegral()) {
- bool isSigned = CE1->getOpcode() == Instruction::ZExt ? false :
+ bool sgnd = CE1->getOpcode() == Instruction::ZExt ? false :
(CE1->getOpcode() == Instruction::SExt ? true :
(CE1->getOpcode() == Instruction::PtrToInt ? false : isSigned));
return evaluateICmpRelation(CE1->getOperand(0), CE2->getOperand(0),
- isSigned);
+ sgnd);
}
break;