[cfe-commits] r149402 - /cfe/trunk/lib/AST/Expr.cpp

Matt Beaumont-Gay matthewbg at google.com
Tue Jan 31 10:59:25 PST 2012


Author: matthewbg
Date: Tue Jan 31 12:59:25 2012
New Revision: 149402

URL: http://llvm.org/viewvc/llvm-project?rev=149402&view=rev
Log:
Pacify gcc's -Wreturn-type.

A separate unreachable message will make it easier to debug if either of the
unreachables is reached.

Modified:
    cfe/trunk/lib/AST/Expr.cpp

Modified: cfe/trunk/lib/AST/Expr.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/AST/Expr.cpp?rev=149402&r1=149401&r2=149402&view=diff
==============================================================================
--- cfe/trunk/lib/AST/Expr.cpp (original)
+++ cfe/trunk/lib/AST/Expr.cpp Tue Jan 31 12:59:25 2012
@@ -2178,6 +2178,7 @@
   case NoStmtClass:
     llvm_unreachable("Invalid class for expression");
   }
+  llvm_unreachable("Bogus StmtClass");
 }
 
 Expr* Expr::IgnoreParens() {





More information about the cfe-commits mailing list