From 45ee0d6de6f82833de1320de35366669b2b1cdf2 Mon Sep 17 00:00:00 2001 From: Fangrui Song Date: Fri, 1 Nov 2019 11:07:21 -0700 Subject: [PATCH] [MIPS GlobalISel] Fix -Wunused-variable in -DLLVM_ENABLE_ASSERTIONS=off builds after D69663 --- llvm/lib/Target/Mips/MipsInstructionSelector.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/llvm/lib/Target/Mips/MipsInstructionSelector.cpp b/llvm/lib/Target/Mips/MipsInstructionSelector.cpp index dde9111..b7d5990 100644 --- a/llvm/lib/Target/Mips/MipsInstructionSelector.cpp +++ b/llvm/lib/Target/Mips/MipsInstructionSelector.cpp @@ -183,6 +183,7 @@ MipsInstructionSelector::selectLoadStoreOpCode(MachineInstr &I, assert(((Ty.isScalar() && TySize == 32) || (Ty.isPointer() && TySize == 32 && MemSizeInBytes == 4)) && "Unsupported register bank, LLT, MemSizeInBytes combination"); + (void)TySize; if (isStore) switch (MemSizeInBytes) { case 4: -- 2.7.4