Use the correct routine.

This commit is contained in:
Vassil Vassilev 2013-09-10 19:34:09 +02:00 committed by sftnight
parent f9a0b72594
commit 18f3af5661

View File

@ -170,8 +170,7 @@ namespace cling {
bool Result = false;
if (Op->EvaluateAsBooleanCondition(Result, *Context)) {
if(!Result) {
Expr* Throw = InsertThrow(&SL, Op);
Stmts.push_back(Throw);
Stmts.push_back(SynthesizeCheck(SL, Op));
}
}
else {
@ -185,8 +184,7 @@ namespace cling {
bool Result = false;
if (Op->EvaluateAsBooleanCondition(Result, *Context)) {
if(!Result) {
Expr* Throw = InsertThrow(&SL, Op);
Stmts.push_back(Throw);
Stmts.push_back(SynthesizeCheck(SL, Op));
}
}
else {