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,


_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits

Reply via email to