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())));

_______________________________________________
cfe-dev mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev

Reply via email to