[llvm] r325464 - Fix unused assertion variable warning.

Amara Emerson via llvm-commits llvm-commits at lists.llvm.org
Sun Feb 18 09:28:35 PST 2018


Author: aemerson
Date: Sun Feb 18 09:28:34 2018
New Revision: 325464

URL: http://llvm.org/viewvc/llvm-project?rev=325464&view=rev
Log:
Fix unused assertion variable warning.

Modified:
    llvm/trunk/lib/Target/AArch64/AArch64InstructionSelector.cpp

Modified: llvm/trunk/lib/Target/AArch64/AArch64InstructionSelector.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/AArch64/AArch64InstructionSelector.cpp?rev=325464&r1=325463&r2=325464&view=diff
==============================================================================
--- llvm/trunk/lib/Target/AArch64/AArch64InstructionSelector.cpp (original)
+++ llvm/trunk/lib/Target/AArch64/AArch64InstructionSelector.cpp Sun Feb 18 09:28:34 2018
@@ -815,6 +815,7 @@ bool AArch64InstructionSelector::select(
   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).




More information about the llvm-commits mailing list