From: Andy Gibbs Date: Tue, 2 Jul 2013 16:01:56 +0000 (+0000) Subject: Suppress "control reaches end of non-void function" warning when compiling with gcc. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ce9cd911c5b88d375ea1ff9f4719e4d63ce0fa7a;p=clang Suppress "control reaches end of non-void function" warning when compiling with gcc. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@185439 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Sema/SemaLambda.cpp b/lib/Sema/SemaLambda.cpp index bc99d58d14..b2dbf0553f 100644 --- a/lib/Sema/SemaLambda.cpp +++ b/lib/Sema/SemaLambda.cpp @@ -116,6 +116,8 @@ Sema::getCurrentMangleNumberContext(DeclContext *DC, // -- default arguments appearing in class definitions return &ExprEvalContexts.back().getMangleNumberingContext(); } + + llvm_unreachable("unexpected context"); } CXXMethodDecl *Sema::startLambdaDefinition(CXXRecordDecl *Class,