From: Richard Smith Date: Mon, 13 May 2013 20:33:30 +0000 (+0000) Subject: Suppress GCC warning for no return after covered switch, and remove some X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1071b9f2d38f8177e54f20412a36450462c19186;p=clang Suppress GCC warning for no return after covered switch, and remove some debugging code from an unreachable codepath. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@181731 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/AST/ExprConstant.cpp b/lib/AST/ExprConstant.cpp index 339e78bbe9..0f44985471 100644 --- a/lib/AST/ExprConstant.cpp +++ b/lib/AST/ExprConstant.cpp @@ -2869,10 +2869,9 @@ static EvalStmtResult EvaluateSwitch(APValue &Result, EvalInfo &Info, 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.