summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/Scalar/Reassociate.cpp
diff options
context:
space:
mode:
authorDevang Patel <dpatel@apple.com>2008-11-21 20:00:59 +0000
committerDevang Patel <dpatel@apple.com>2008-11-21 20:00:59 +0000
commitcb181bb203085f863ee89eabdb75eb0778c5e2f5 (patch)
tree473ac5ebf743880303bd928f5be2dd2123b2bf7c /llvm/lib/Transforms/Scalar/Reassociate.cpp
parent72d9912b08c5492cc2eaff9a666e45718f1dea07 (diff)
downloadbcm5719-llvm-cb181bb203085f863ee89eabdb75eb0778c5e2f5.tar.gz
bcm5719-llvm-cb181bb203085f863ee89eabdb75eb0778c5e2f5.zip
Silence unused variable warnings.
llvm-svn: 59841
Diffstat (limited to 'llvm/lib/Transforms/Scalar/Reassociate.cpp')
-rw-r--r--llvm/lib/Transforms/Scalar/Reassociate.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/lib/Transforms/Scalar/Reassociate.cpp b/llvm/lib/Transforms/Scalar/Reassociate.cpp
index 313723cfefa..c220c2bcc16 100644
--- a/llvm/lib/Transforms/Scalar/Reassociate.cpp
+++ b/llvm/lib/Transforms/Scalar/Reassociate.cpp
@@ -53,6 +53,7 @@ namespace {
}
}
+#ifndef DEBUG
/// PrintOps - Print out the expression identified in the Ops list.
///
static void PrintOps(Instruction *I, const std::vector<ValueEntry> &Ops) {
@@ -64,6 +65,7 @@ static void PrintOps(Instruction *I, const std::vector<ValueEntry> &Ops) {
cerr << "," << Ops[i].Rank;
}
}
+#endif
namespace {
class VISIBILITY_HIDDEN Reassociate : public FunctionPass {
@@ -282,6 +284,7 @@ void Reassociate::LinearizeExprTree(BinaryOperator *I,
std::swap(LHS, RHS);
bool Success = !I->swapOperands();
assert(Success && "swapOperands failed");
+ Success = false;
MadeChange = true;
}
} else if (RHSBO) {
OpenPOWER on IntegriCloud