r181731 - Suppress GCC warning for no return after covered switch, and remove some
Richard Smith
richard-llvm at metafoo.co.uk
Mon May 13 13:33:30 PDT 2013
Author: rsmith
Date: Mon May 13 15:33:30 2013
New Revision: 181731
URL: http://llvm.org/viewvc/llvm-project?rev=181731&view=rev
Log:
Suppress GCC warning for no return after covered switch, and remove some
debugging code from an unreachable codepath.
Modified:
cfe/trunk/lib/AST/ExprConstant.cpp
Modified: cfe/trunk/lib/AST/ExprConstant.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/AST/ExprConstant.cpp?rev=181731&r1=181730&r2=181731&view=diff
==============================================================================
--- cfe/trunk/lib/AST/ExprConstant.cpp (original)
+++ cfe/trunk/lib/AST/ExprConstant.cpp Mon May 13 15:33:30 2013
@@ -2869,10 +2869,9 @@ static EvalStmtResult EvaluateSwitch(APV
case ESR_Returned:
return ESR;
case ESR_CaseNotFound:
- Found->dump();
- SS->getBody()->dump();
llvm_unreachable("couldn't find switch case");
}
+ llvm_unreachable("Invalid EvalStmtResult!");
}
// Evaluate a statement.
More information about the cfe-commits
mailing list