forked from OSchip/llvm-project
[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
d63d14f76b
commit
6005681ac6
|
@ -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