Suppress -Wswitch to unbreak the build.
authorDavid Blaikie <dblaikie@gmail.com>
Fri, 22 Feb 2013 17:44:58 +0000 (17:44 +0000)
committerDavid Blaikie <dblaikie@gmail.com>
Fri, 22 Feb 2013 17:44:58 +0000 (17:44 +0000)
This may need to be fixed more intelligently - I don't have enough context to
be sure what the appropriate fix is right now.

llvm-svn: 175902

clang/tools/libclang/CIndex.cpp

index 563cc51..36224a8 100644 (file)
@@ -4457,6 +4457,7 @@ CXCursor clang_getCursorDefinition(CXCursor C) {
 
   // Declaration kinds that don't make any sense here, but are
   // nonetheless harmless.
+  case Decl::Empty:
   case Decl::TranslationUnit:
     break;