[cfe-dev] bug in Expr::isIntegerConstantExpr() in LNot handling
Nuno Lopes
nunoplopes at sapo.pt
Fri Jan 25 10:57:40 PST 2008
Hi,
I think I didn't send this patch yet. The patch fixes a bug in
Expr::isIntegerConstantExpr() handling the LNot Operator.
Nuno
Index: Expr.cpp
===================================================================
--- Expr.cpp (revision 46352)
+++ Expr.cpp (working copy)
@@ -703,7 +703,7 @@
}
break;
case UnaryOperator::LNot: {
- bool Val = Result != 0;
+ bool Val = Result == 0;
Result.zextOrTrunc(
static_cast<uint32_t>(Ctx.getTypeSize(getType(),
Exp->getOperatorLoc())));
More information about the cfe-dev
mailing list