From c93e390d8ea4da515711e1dc56f2a08bf9823934 Mon Sep 17 00:00:00 2001 From: Hans Wennborg Date: Mon, 26 Feb 2018 09:56:32 +0000 Subject: Fix an unused variable warning in non-assert builds git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_60@326075 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Target/AArch64/AArch64InstructionSelector.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/Target/AArch64/AArch64InstructionSelector.cpp b/lib/Target/AArch64/AArch64InstructionSelector.cpp index 0bc5b395499..7d2ec1be288 100644 --- a/lib/Target/AArch64/AArch64InstructionSelector.cpp +++ b/lib/Target/AArch64/AArch64InstructionSelector.cpp @@ -840,6 +840,7 @@ bool AArch64InstructionSelector::select(MachineInstr &I, case TargetOpcode::G_EXTRACT: { LLT SrcTy = MRI.getType(I.getOperand(1).getReg()); LLT DstTy = MRI.getType(I.getOperand(0).getReg()); + (void)DstTy; unsigned SrcSize = SrcTy.getSizeInBits(); // Larger extracts are vectors, same-size extracts should be something else // by now (either split up or simplified to a COPY). -- cgit v1.2.3