summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias Braun <matze@braunis.de>2016-01-23 06:49:29 +0000
committerMatthias Braun <matze@braunis.de>2016-01-23 06:49:29 +0000
commit327bca776c3e0c91af08ba715f390c678f6ac0ad (patch)
tree1a2c02621f427381439a47960916d7dc3710d392
parent9974fa9c8c234019b92c6c8485bbbc18314c2bc7 (diff)
downloadbcm5719-llvm-327bca776c3e0c91af08ba715f390c678f6ac0ad.tar.gz
bcm5719-llvm-327bca776c3e0c91af08ba715f390c678f6ac0ad.zip
Inline variable into assert
Seems like some compilers still give unused variable warnings for bool var = ...; (void)var; so I have to inline the variable. llvm-svn: 258619
-rw-r--r--llvm/lib/Target/AArch64/AArch64ISelLowering.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/llvm/lib/Target/AArch64/AArch64ISelLowering.cpp b/llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
index c89becd0c81..0687bd803e8 100644
--- a/llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
+++ b/llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
@@ -1446,10 +1446,8 @@ static SDValue emitConjunctionDisjunctionTreeRec(SelectionDAG &DAG, SDValue Val,
std::swap(LHS, RHS);
} else {
bool NeedsNegOutL = LHS->getOpcode() == ISD::OR;
- bool NeedsNegOutR = RHS->getOpcode() == ISD::OR;
- assert((!NeedsNegOutR || !NeedsNegOutL) &&
+ assert((!NeedsNegOutL || RHS->getOpcode() != ISD::OR) &&
"Valid conjunction/disjunction tree");
- (void)NeedsNegOutR;
// Order the side where we need to negate the output flags to RHS so it
// gets emitted first.
if (NeedsNegOutL)
OpenPOWER on IntegriCloud