diff options
author | Daniel Dunbar <daniel@zuster.org> | 2009-01-15 18:32:35 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2009-01-15 18:32:35 +0000 |
commit | f185319f25efd6094870f287030270fad26085ba (patch) | |
tree | 14ab192b82690cd920548720ee8c584479894518 /lib/AST/ExprConstant.cpp | |
parent | d4edfe4746c66d2ac452c8a8d7cac17192283e75 (diff) |
Fix some unused variable, control reaches end of non-void function,
and uninitialized use options.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@62270 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/AST/ExprConstant.cpp')
-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 de6a14b87b..6d98952545 100644 --- a/lib/AST/ExprConstant.cpp +++ b/lib/AST/ExprConstant.cpp @@ -1219,6 +1219,7 @@ bool Expr::isEvaluatable(ASTContext &Ctx) const { APSInt Expr::EvaluateAsInt(ASTContext &Ctx) const { EvalResult EvalResult; bool Result = Evaluate(EvalResult, Ctx); + Result = Result; assert(Result && "Could not evaluate expression"); assert(EvalResult.Val.isInt() && "Expression did not evaluate to integer"); |