From 807d2f442ad4ebebf01aed509c17e54be97f69a0 Mon Sep 17 00:00:00 2001 From: Fangrui Song Date: Tue, 25 Jun 2019 13:28:44 +0000 Subject: [PATCH] [ARM] Fix -Wunused-variable in -DLLVM_ENABLE_ASSERTIONS=off builds after D60692 llvm-svn: 364312 --- llvm/lib/Target/ARM/ARMISelLowering.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/llvm/lib/Target/ARM/ARMISelLowering.cpp b/llvm/lib/Target/ARM/ARMISelLowering.cpp index f082c843ccd9..1ae87e4854e2 100644 --- a/llvm/lib/Target/ARM/ARMISelLowering.cpp +++ b/llvm/lib/Target/ARM/ARMISelLowering.cpp @@ -14476,6 +14476,7 @@ SDValue ARMTargetLowering::LowerFP_ROUND(SDValue Op, SelectionDAG &DAG) const { 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");