Suppress "control reaches end of non-void function" warning when compiling with gcc.
authorAndy Gibbs <andyg1001@hotmail.co.uk>
Tue, 2 Jul 2013 16:01:56 +0000 (16:01 +0000)
committerAndy Gibbs <andyg1001@hotmail.co.uk>
Tue, 2 Jul 2013 16:01:56 +0000 (16:01 +0000)
llvm-svn: 185439

clang/lib/Sema/SemaLambda.cpp

index bc99d58..b2dbf05 100644 (file)
@@ -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,