diff options
author | Hans Wennborg <hans@hanshq.net> | 2013-05-06 15:13:34 +0000 |
---|---|---|
committer | Hans Wennborg <hans@hanshq.net> | 2013-05-06 15:13:34 +0000 |
commit | dbce2c6771d3d1e8ca42989122a5edf8fb5a93d7 (patch) | |
tree | f0e25e69da25de067ddcfd9450b254c94e53d81d | |
parent | fb59486ef3624d09896b09a978b28eb63cfd3c46 (diff) |
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
-rw-r--r-- | lib/AST/ExprConstant.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
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. |