Fix -Asserts warning.
authorDaniel Dunbar <daniel@zuster.org>
Fri, 21 Aug 2009 16:17:36 +0000 (16:17 +0000)
committerDaniel Dunbar <daniel@zuster.org>
Fri, 21 Aug 2009 16:17:36 +0000 (16:17 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@79636 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/PIC16/PIC16PAN.h

index f0e1ba0de07bb1fe68c8390f1216e1b9012f5f96..a14671e755f1c8549592fe941adc2a6cf0a658a5 100644 (file)
@@ -433,12 +433,12 @@ namespace PIC16Overlay {
 
     inline static std::string getSectionNameForColor(unsigned Color) {
       switch (Color) {
+        default:
+          assert( 0 && "Color not supported");
         case PIC16Overlay::GREEN:
           return "GREEN";
         case PIC16Overlay::GREEN_IL:
           return "GREEN_IL";
-        default:
-          assert( 0 && "Color not supported");
       }   
     }