From 463f2a62ec515ebb559a5dd1020d08aa5af273de 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 --- lib/Target/Mips/MipsInstructionSelector.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/Target/Mips/MipsInstructionSelector.cpp b/lib/Target/Mips/MipsInstructionSelector.cpp index dde91115bc0..b7d5990a332 100644 --- a/lib/Target/Mips/MipsInstructionSelector.cpp +++ b/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: