[llvm] r364312 - [ARM] Fix -Wunused-variable in -DLLVM_ENABLE_ASSERTIONS=off builds after D60692
Fangrui Song via llvm-commits
llvm-commits at lists.llvm.org
Tue Jun 25 06:28:44 PDT 2019
Author: maskray
Date: Tue Jun 25 06:28:44 2019
New Revision: 364312
URL: http://llvm.org/viewvc/llvm-project?rev=364312&view=rev
Log:
[ARM] Fix -Wunused-variable in -DLLVM_ENABLE_ASSERTIONS=off builds after D60692
Modified:
llvm/trunk/lib/Target/ARM/ARMISelLowering.cpp
Modified: llvm/trunk/lib/Target/ARM/ARMISelLowering.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/ARM/ARMISelLowering.cpp?rev=364312&r1=364311&r2=364312&view=diff
==============================================================================
--- llvm/trunk/lib/Target/ARM/ARMISelLowering.cpp (original)
+++ llvm/trunk/lib/Target/ARM/ARMISelLowering.cpp Tue Jun 25 06:28:44 2019
@@ -14476,6 +14476,7 @@ SDValue ARMTargetLowering::LowerFP_ROUND
EVT DstVT = Op.getValueType();
const unsigned DstSz = Op.getValueType().getSizeInBits();
const unsigned SrcSz = SrcVT.getSizeInBits();
+ (void)DstSz;
assert(DstSz < SrcSz && SrcSz <= 64 && DstSz >= 16 &&
"Unexpected type for custom-lowering FP_ROUND");
More information about the llvm-commits
mailing list