[llvm] 45ee0d6 - [MIPS GlobalISel] Fix -Wunused-variable in -DLLVM_ENABLE_ASSERTIONS=off builds after D69663

Fangrui Song via llvm-commits llvm-commits at lists.llvm.org
Fri Nov 1 11:07:59 PDT 2019


Author: Fangrui Song
Date: 2019-11-01T11:07:50-07:00
New Revision: 45ee0d6de6f82833de1320de35366669b2b1cdf2

URL: https://github.com/llvm/llvm-project/commit/45ee0d6de6f82833de1320de35366669b2b1cdf2
DIFF: https://github.com/llvm/llvm-project/commit/45ee0d6de6f82833de1320de35366669b2b1cdf2.diff

LOG: [MIPS GlobalISel] Fix -Wunused-variable in -DLLVM_ENABLE_ASSERTIONS=off builds after D69663

Added: 
    

Modified: 
    llvm/lib/Target/Mips/MipsInstructionSelector.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Target/Mips/MipsInstructionSelector.cpp b/llvm/lib/Target/Mips/MipsInstructionSelector.cpp
index dde91115bc03..b7d5990a3328 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:


        


More information about the llvm-commits mailing list