summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Support/APFloat.cpp
diff options
context:
space:
mode:
authorDuncan Sands <baldrick@free.fr>2011-08-12 14:54:45 +0000
committerDuncan Sands <baldrick@free.fr>2011-08-12 14:54:45 +0000
commita41634e307caa823b1e050eb8b4f67fdf4b8e415 (patch)
tree0172f17f10f9238b605692f703516f3d271ff563 /llvm/lib/Support/APFloat.cpp
parent50aa2d480ced9bb792d438f6ff92fe06afa6b84e (diff)
downloadbcm5719-llvm-a41634e307caa823b1e050eb8b4f67fdf4b8e415.tar.gz
bcm5719-llvm-a41634e307caa823b1e050eb8b4f67fdf4b8e415.zip
Silence a bunch (but not all) "variable written but not read" warnings
when building with assertions disabled. llvm-svn: 137460
Diffstat (limited to 'llvm/lib/Support/APFloat.cpp')
-rw-r--r--llvm/lib/Support/APFloat.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/lib/Support/APFloat.cpp b/llvm/lib/Support/APFloat.cpp
index b37e0115468..1437fd6f814 100644
--- a/llvm/lib/Support/APFloat.cpp
+++ b/llvm/lib/Support/APFloat.cpp
@@ -832,6 +832,7 @@ APFloat::incrementSignificand()
/* Our callers should never cause us to overflow. */
assert(carry == 0);
+ (void)carry;
}
/* Add the significand of the RHS. Returns the carry flag. */
@@ -926,6 +927,7 @@ APFloat::multiplySignificand(const APFloat &rhs, const APFloat *addend)
APFloat extendedAddend(*addend);
status = extendedAddend.convert(extendedSemantics, rmTowardZero, &ignored);
assert(status == opOK);
+ (void)status;
lost_fraction = addOrSubtractSignificand(extendedAddend, false);
/* Restore our state. */
@@ -1389,6 +1391,7 @@ APFloat::addOrSubtractSignificand(const APFloat &rhs, bool subtract)
/* The code above is intended to ensure that no borrow is
necessary. */
assert(!carry);
+ (void)carry;
} else {
if (bits > 0) {
APFloat temp_rhs(rhs);
@@ -1402,6 +1405,7 @@ APFloat::addOrSubtractSignificand(const APFloat &rhs, bool subtract)
/* We have a guard bit; generating a carry cannot happen. */
assert(!carry);
+ (void)carry;
}
return lost_fraction;
OpenPOWER on IntegriCloud