]> granicus.if.org Git - clang/commitdiff
Silence a control reaches end of function warning. Patch by Enea
authorMike Stump <mrs@apple.com>
Mon, 18 Jan 2010 18:41:43 +0000 (18:41 +0000)
committerMike Stump <mrs@apple.com>
Mon, 18 Jan 2010 18:41:43 +0000 (18:41 +0000)
Zaffanella.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@93743 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/AST/TypeLocVisitor.h

index 95ec175a53a4334812406584e6457094cb759e3d..50fc43913f4c79dc4472e2dca145ef758dadecb3 100644 (file)
@@ -43,6 +43,7 @@ public:
     case TypeLoc::CLASS: DISPATCH(CLASS##TypeLoc);
 #include "clang/AST/TypeLocNodes.def"
     }
+    llvm_unreachable("unexpected type loc class!");
   }
 
 #define TYPELOC(CLASS, PARENT)      \