diff options
author | Chris Lattner <sabre@nondot.org> | 2006-01-05 07:19:51 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2006-01-05 07:19:51 +0000 |
commit | 2c822cce61d151e934ab5f95b9511be206b5ebce (patch) | |
tree | bc415b0c9592918f75f23a53d140ad538ca1bd9d /lib/VMCore/ConstantFold.cpp | |
parent | bfc89d387659e55808f5ac2473c08566ef2006df (diff) |
fix some formatting problems
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25110 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/VMCore/ConstantFold.cpp')
-rw-r--r-- | lib/VMCore/ConstantFold.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/lib/VMCore/ConstantFold.cpp b/lib/VMCore/ConstantFold.cpp index 4ac5292190..826b692f2a 100644 --- a/lib/VMCore/ConstantFold.cpp +++ b/lib/VMCore/ConstantFold.cpp @@ -235,7 +235,7 @@ struct EmptyRules : public TemplateRules<Constant, EmptyRules> { // struct BoolRules : public TemplateRules<ConstantBool, BoolRules> { - static Constant *LessThan(const ConstantBool *V1, const ConstantBool *V2){ + static Constant *LessThan(const ConstantBool *V1, const ConstantBool *V2) { return ConstantBool::get(V1->getValue() < V2->getValue()); } @@ -800,13 +800,13 @@ static Instruction::BinaryOps evaluateRelation(const Constant *V1, if (SwappedRelation != Instruction::BinaryOpsEnd) return SetCondInst::getSwappedCondition(SwappedRelation); - } else if (const GlobalValue *CPR1 = dyn_cast<GlobalValue>(V1)){ + } else if (const GlobalValue *CPR1 = dyn_cast<GlobalValue>(V1)) { if (isa<ConstantExpr>(V2)) { // Swap as necessary. - Instruction::BinaryOps SwappedRelation = evaluateRelation(V2, V1); - if (SwappedRelation != Instruction::BinaryOpsEnd) - return SetCondInst::getSwappedCondition(SwappedRelation); - else - return Instruction::BinaryOpsEnd; + Instruction::BinaryOps SwappedRelation = evaluateRelation(V2, V1); + if (SwappedRelation != Instruction::BinaryOpsEnd) + return SetCondInst::getSwappedCondition(SwappedRelation); + else + return Instruction::BinaryOpsEnd; } // Now we know that the RHS is a GlobalValue or simple constant, |