diff options
| author | Sam Parker <sam.parker@arm.com> | 2019-07-03 14:39:23 +0000 |
|---|---|---|
| committer | Sam Parker <sam.parker@arm.com> | 2019-07-03 14:39:23 +0000 |
| commit | 6005681ac614ac60831dd1c22e8787f3fddcfa9d (patch) | |
| tree | 76fae698f276937b7c76a1a5c2afda711b2ba84b /llvm/lib | |
| parent | d63d14f76b9aabd6af33e8f5a6ed2386c5f88ec7 (diff) | |
| download | bcm5719-llvm-6005681ac614ac60831dd1c22e8787f3fddcfa9d.tar.gz bcm5719-llvm-6005681ac614ac60831dd1c22e8787f3fddcfa9d.zip | |
[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
Diffstat (limited to 'llvm/lib')
| -rw-r--r-- | llvm/lib/Target/ARM/ARMISelLowering.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/llvm/lib/Target/ARM/ARMISelLowering.cpp b/llvm/lib/Target/ARM/ARMISelLowering.cpp index c1668dcb5b7..28d014c297e 100644 --- a/llvm/lib/Target/ARM/ARMISelLowering.cpp +++ b/llvm/lib/Target/ARM/ARMISelLowering.cpp @@ -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); |

