From: Mike Stump Date: Mon, 18 Jan 2010 18:41:43 +0000 (+0000) Subject: Silence a control reaches end of function warning. Patch by Enea X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b7fd588ea95bfbe8436380091ab0f61a4210ba4b;p=clang Silence a control reaches end of function warning. Patch by Enea Zaffanella. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@93743 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/clang/AST/TypeLocVisitor.h b/include/clang/AST/TypeLocVisitor.h index 95ec175a53..50fc43913f 100644 --- a/include/clang/AST/TypeLocVisitor.h +++ b/include/clang/AST/TypeLocVisitor.h @@ -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) \