[cfe-commits] r162325 - /cfe/trunk/lib/StaticAnalyzer/Core/ExprEngineCallAndReturn.cpp

Matt Beaumont-Gay matthewbg at google.com
Tue Aug 21 15:27:18 PDT 2012


Author: matthewbg
Date: Tue Aug 21 17:27:18 2012
New Revision: 162325

URL: http://llvm.org/viewvc/llvm-project?rev=162325&view=rev
Log:
Add an llvm_unreachable to pacify GCC's -Wreturn-type.

Modified:
    cfe/trunk/lib/StaticAnalyzer/Core/ExprEngineCallAndReturn.cpp

Modified: cfe/trunk/lib/StaticAnalyzer/Core/ExprEngineCallAndReturn.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/StaticAnalyzer/Core/ExprEngineCallAndReturn.cpp?rev=162325&r1=162324&r2=162325&view=diff
==============================================================================
--- cfe/trunk/lib/StaticAnalyzer/Core/ExprEngineCallAndReturn.cpp (original)
+++ cfe/trunk/lib/StaticAnalyzer/Core/ExprEngineCallAndReturn.cpp Tue Aug 21 17:27:18 2012
@@ -315,6 +315,7 @@
   case NumIPAModes:
     llvm_unreachable("not actually a valid option");
   }
+  llvm_unreachable("bogus IPAMode");
 }
 
 bool ExprEngine::inlineCall(const CallEvent &Call, const Decl *D,





More information about the cfe-commits mailing list