From 0f7e9f5180ba2c8443e48381e3c6efc149112517 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Thu, 5 Jan 2006 07:19:51 +0000 Subject: [PATCH] fix some formatting problems llvm-svn: 25110 --- llvm/lib/VMCore/ConstantFolding.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/llvm/lib/VMCore/ConstantFolding.cpp b/llvm/lib/VMCore/ConstantFolding.cpp index 4ac5292190ce..826b692f2afe 100644 --- a/llvm/lib/VMCore/ConstantFolding.cpp +++ b/llvm/lib/VMCore/ConstantFolding.cpp @@ -235,7 +235,7 @@ struct EmptyRules : public TemplateRules { // struct BoolRules : public TemplateRules { - 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(V1)){ + } else if (const GlobalValue *CPR1 = dyn_cast(V1)) { if (isa(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,