[llvm-commits] [llvm] r79636 - /llvm/trunk/lib/Target/PIC16/PIC16PAN.h

Daniel Dunbar daniel at zuster.org
Fri Aug 21 09:17:36 PDT 2009


Author: ddunbar
Date: Fri Aug 21 11:17:36 2009
New Revision: 79636

URL: http://llvm.org/viewvc/llvm-project?rev=79636&view=rev
Log:
Fix -Asserts warning.

Modified:
    llvm/trunk/lib/Target/PIC16/PIC16PAN.h

Modified: llvm/trunk/lib/Target/PIC16/PIC16PAN.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/PIC16/PIC16PAN.h?rev=79636&r1=79635&r2=79636&view=diff

==============================================================================
--- llvm/trunk/lib/Target/PIC16/PIC16PAN.h (original)
+++ llvm/trunk/lib/Target/PIC16/PIC16PAN.h Fri Aug 21 11:17:36 2009
@@ -433,12 +433,12 @@
 
     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");
       }   
     }
 





More information about the llvm-commits mailing list