[MIPS GlobalISel] Fix -Wunused-variable in -DLLVM_ENABLE_ASSERTIONS=off builds after...
authorFangrui Song <maskray@google.com>
Fri, 1 Nov 2019 18:07:21 +0000 (11:07 -0700)
committerFangrui Song <maskray@google.com>
Fri, 1 Nov 2019 18:07:50 +0000 (11:07 -0700)
llvm/lib/Target/Mips/MipsInstructionSelector.cpp

index dde9111..b7d5990 100644 (file)
@@ -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: