1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-19 11:02:59 +02:00

[ARM] Fix for NDEBUG builds

Fix unused variable warning as well as a nonsense assert.

Differential Revision: https://reviews.llvm.org/D63816

llvm-svn: 365046
This commit is contained in:
Sam Parker 2019-07-03 14:39:23 +00:00
parent c1766168d9
commit 98e899e1ff

View File

@ -12964,10 +12964,9 @@ static SDValue PerformHWLoopCombine(SDNode *N,
if (IntOp != Intrinsic::test_set_loop_iterations)
return SDValue();
if (auto *Const = dyn_cast<ConstantSDNode>(CC->getOperand(1)))
assert(Const->isOne() && "Expected to compare against 1");
else
assert(Const->isOne() && "Expected to compare against 1");
assert((isa<ConstantSDNode>(CC->getOperand(1)) &&
cast<ConstantSDNode>(CC->getOperand(1))->isOne()) &&
"Expected to compare against 1");
SDLoc dl(Int);
SDValue Chain = N->getOperand(0);