diff options
author | Duncan Sands <baldrick@free.fr> | 2011-08-12 14:54:45 +0000 |
---|---|---|
committer | Duncan Sands <baldrick@free.fr> | 2011-08-12 14:54:45 +0000 |
commit | 1f6a329f79b3568d379142f921f59c4143ddaa14 (patch) | |
tree | 48a398f7238e67041a4f73e6f65440be845523cb /lib/Transforms/Scalar/Reassociate.cpp | |
parent | 3c757ef2ef8294ea34378804d7c4d71053588b8c (diff) |
Silence a bunch (but not all) "variable written but not read" warnings
when building with assertions disabled.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@137460 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/Scalar/Reassociate.cpp')
-rw-r--r-- | lib/Transforms/Scalar/Reassociate.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Transforms/Scalar/Reassociate.cpp b/lib/Transforms/Scalar/Reassociate.cpp index e6341ae307..8f98a5b650 100644 --- a/lib/Transforms/Scalar/Reassociate.cpp +++ b/lib/Transforms/Scalar/Reassociate.cpp @@ -309,7 +309,7 @@ void Reassociate::LinearizeExprTree(BinaryOperator *I, std::swap(LHS, RHS); bool Success = !I->swapOperands(); assert(Success && "swapOperands failed"); - Success = false; + (void)Success; MadeChange = true; } else if (RHSBO) { // Turn (A+B)+(C+D) -> (((A+B)+C)+D). This guarantees the RHS is not |