[llvm] r265693 - [SystemZ] Fix build break from r265689

Ulrich Weigand via llvm-commits llvm-commits at lists.llvm.org
Thu Apr 7 09:33:25 PDT 2016


Author: uweigand
Date: Thu Apr  7 11:33:25 2016
New Revision: 265693

URL: http://llvm.org/viewvc/llvm-project?rev=265693&view=rev
Log:
[SystemZ] Fix build break from r265689

Fix build error seen on some build bots due to:
error: default label in switch which covers all enumeration values


Modified:
    llvm/trunk/lib/Target/SystemZ/SystemZInstrInfo.cpp

Modified: llvm/trunk/lib/Target/SystemZ/SystemZInstrInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/SystemZ/SystemZInstrInfo.cpp?rev=265693&r1=265692&r2=265693&view=diff
==============================================================================
--- llvm/trunk/lib/Target/SystemZ/SystemZInstrInfo.cpp (original)
+++ llvm/trunk/lib/Target/SystemZ/SystemZInstrInfo.cpp Thu Apr  7 11:33:25 2016
@@ -1334,9 +1334,8 @@ unsigned SystemZInstrInfo::getCompareAnd
     default:
       return 0;
     }
-  default:
-    return 0;
   }
+  return 0;
 }
 
 void SystemZInstrInfo::loadImmediate(MachineBasicBlock &MBB,




More information about the llvm-commits mailing list