From: Petar Avramovic Date: Mon, 17 Dec 2018 15:12:53 +0000 (+0000) Subject: [MIPS GlobalISel] Remove switch statement (fix r349346 for MSVC) X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a7f5217bfb5037a310c24e92d7c6c4c6115b6b71;p=llvm [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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@349356 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Target/Mips/MipsLegalizerInfo.cpp b/lib/Target/Mips/MipsLegalizerInfo.cpp index 08e5ddd0342..1d55557f857 100644 --- a/lib/Target/Mips/MipsLegalizerInfo.cpp +++ b/lib/Target/Mips/MipsLegalizerInfo.cpp @@ -67,10 +67,5 @@ bool MipsLegalizerInfo::legalizeCustom(MachineInstr &MI, MIRBuilder.setInstr(MI); - switch (MI.getOpcode()) { - default: - return false; - } - - return true; + return false; }