From dbce2c6771d3d1e8ca42989122a5edf8fb5a93d7 Mon Sep 17 00:00:00 2001 From: Hans Wennborg Date: Mon, 6 May 2013 15:13:34 +0000 Subject: Add llvm_unreachable at end of fully covered switch To pacify GCC warning about control reaching end of non-void function. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@181197 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/AST/ExprConstant.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/AST/ExprConstant.cpp b/lib/AST/ExprConstant.cpp index 2b9d13cec0..8c650290b5 100644 --- a/lib/AST/ExprConstant.cpp +++ b/lib/AST/ExprConstant.cpp @@ -2514,6 +2514,7 @@ static EvalStmtResult EvaluateLoopBody(APValue &Result, EvalInfo &Info, case ESR_Returned: return ESR; } + llvm_unreachable("Invalid EvalStmtResult!"); } // Evaluate a statement. -- cgit v1.2.3-18-g5258