diff options
| author | Reid Spencer <rspencer@reidspencer.com> | 2006-12-23 10:21:26 +0000 |
|---|---|---|
| committer | Reid Spencer <rspencer@reidspencer.com> | 2006-12-23 10:21:26 +0000 |
| commit | ccf78ac1d004d2b769a8b829212a5b744ca3692c (patch) | |
| tree | 9429f119ae1bcbed34a431524037dfb5c1125d42 /llvm | |
| parent | 266e42b312ab7c457d1eab01475f63e59f60933c (diff) | |
| download | bcm5719-llvm-ccf78ac1d004d2b769a8b829212a5b744ca3692c.tar.gz bcm5719-llvm-ccf78ac1d004d2b769a8b829212a5b744ca3692c.zip | |
Don't overload var names.
llvm-svn: 32752
Diffstat (limited to 'llvm')
| -rw-r--r-- | llvm/lib/VMCore/ConstantFolding.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/llvm/lib/VMCore/ConstantFolding.cpp b/llvm/lib/VMCore/ConstantFolding.cpp index a7438fcde81..8fb02976fc4 100644 --- a/llvm/lib/VMCore/ConstantFolding.cpp +++ b/llvm/lib/VMCore/ConstantFolding.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; |

