1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-25 12:12:47 +01:00

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
This commit is contained in:
Matthias Braun 2016-01-23 06:49:29 +00:00
parent c47ea12e00
commit f692315c07

View File

@ -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)