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:
parent
c1766168d9
commit
98e899e1ff
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user