diff options
Diffstat (limited to 'lib/AST/ExprConstant.cpp')
-rw-r--r-- | lib/AST/ExprConstant.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/AST/ExprConstant.cpp b/lib/AST/ExprConstant.cpp index 0cb8e80871..44e41864f0 100644 --- a/lib/AST/ExprConstant.cpp +++ b/lib/AST/ExprConstant.cpp @@ -406,7 +406,7 @@ namespace { /// certain things in certain situations. struct EvalInfo { ASTContext &Ctx; -CCValue WVal; + /// EvalStatus - Contains information about the evaluation. Expr::EvalStatus &EvalStatus; @@ -1205,10 +1205,10 @@ static bool HandleConversionToBool(const CCValue &Val, bool &Result) { static bool EvaluateAsBooleanCondition(const Expr *E, bool &Result, EvalInfo &Info) { assert(E->isRValue() && "missing lvalue-to-rvalue conv in bool condition"); - //CCValue Val; - if (!Evaluate(Info.WVal, Info, E)) + CCValue Val; + if (!Evaluate(Val, Info, E)) return false; - return HandleConversionToBool(Info.WVal, Result); + return HandleConversionToBool(Val, Result); } template<typename T> |