r185439 - Suppress "control reaches end of non-void function" warning when compiling with gcc.

Andy Gibbs andyg1001 at hotmail.co.uk
Tue Jul 2 09:01:56 PDT 2013


Author: andyg
Date: Tue Jul  2 11:01:56 2013
New Revision: 185439

URL: http://llvm.org/viewvc/llvm-project?rev=185439&view=rev
Log:
Suppress "control reaches end of non-void function" warning when compiling with gcc.

Modified:
    cfe/trunk/lib/Sema/SemaLambda.cpp

Modified: cfe/trunk/lib/Sema/SemaLambda.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Sema/SemaLambda.cpp?rev=185439&r1=185438&r2=185439&view=diff
==============================================================================
--- cfe/trunk/lib/Sema/SemaLambda.cpp (original)
+++ cfe/trunk/lib/Sema/SemaLambda.cpp Tue Jul  2 11:01:56 2013
@@ -116,6 +116,8 @@ Sema::getCurrentMangleNumberContext(Decl
     //  -- default arguments appearing in class definitions
     return &ExprEvalContexts.back().getMangleNumberingContext();
   }
+
+  llvm_unreachable("unexpected context");
 }
 
 CXXMethodDecl *Sema::startLambdaDefinition(CXXRecordDecl *Class,





More information about the cfe-commits mailing list