[llvm] r349356 - [MIPS GlobalISel] Remove switch statement (fix r349346 for MSVC)

Petar Avramovic via llvm-commits llvm-commits at lists.llvm.org
Mon Dec 17 07:12:53 PST 2018


Author: petar.avramovic
Date: Mon Dec 17 07:12:53 2018
New Revision: 349356

URL: http://llvm.org/viewvc/llvm-project?rev=349356&view=rev
Log:
[MIPS GlobalISel] Remove switch statement (fix r349346 for MSVC)

Temporarily remove switch statement without any case labels 
in function legalizeCustom in order to fix r349346 for MSVC.


Modified:
    llvm/trunk/lib/Target/Mips/MipsLegalizerInfo.cpp

Modified: llvm/trunk/lib/Target/Mips/MipsLegalizerInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/Mips/MipsLegalizerInfo.cpp?rev=349356&r1=349355&r2=349356&view=diff
==============================================================================
--- llvm/trunk/lib/Target/Mips/MipsLegalizerInfo.cpp (original)
+++ llvm/trunk/lib/Target/Mips/MipsLegalizerInfo.cpp Mon Dec 17 07:12:53 2018
@@ -67,10 +67,5 @@ bool MipsLegalizerInfo::legalizeCustom(M
 
   MIRBuilder.setInstr(MI);
 
-  switch (MI.getOpcode()) {
-  default:
-    return false;
-  }
-
-  return true;
+  return false;
 }




More information about the llvm-commits mailing list