[cfe-commits] r130043 - /cfe/trunk/lib/Sema/SemaCXXCast.cpp

Argyrios Kyrtzidis akyrtzi at gmail.com
Fri Apr 22 18:10:24 PDT 2011


Author: akirtzidis
Date: Fri Apr 22 20:10:24 2011
New Revision: 130043

URL: http://llvm.org/viewvc/llvm-project?rev=130043&view=rev
Log:
Exhaust the cases.

Modified:
    cfe/trunk/lib/Sema/SemaCXXCast.cpp

Modified: cfe/trunk/lib/Sema/SemaCXXCast.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Sema/SemaCXXCast.cpp?rev=130043&r1=130042&r2=130043&view=diff
==============================================================================
--- cfe/trunk/lib/Sema/SemaCXXCast.cpp (original)
+++ cfe/trunk/lib/Sema/SemaCXXCast.cpp Fri Apr 22 20:10:24 2011
@@ -1329,7 +1329,8 @@
 
     const char *inappropriate = 0;
     switch (SrcExpr.get()->getObjectKind()) {
-    default: break;
+    case OK_Ordinary:
+      break;
     case OK_BitField:        inappropriate = "bit-field";           break;
     case OK_VectorComponent: inappropriate = "vector element";      break;
     case OK_ObjCProperty:    inappropriate = "property expression"; break;





More information about the cfe-commits mailing list