[cfe-commits] r46364 - /cfe/trunk/AST/Expr.cpp
Chris Lattner
sabre at nondot.org
Fri Jan 25 11:16:20 PST 2008
Author: lattner
Date: Fri Jan 25 13:16:19 2008
New Revision: 46364
URL: http://llvm.org/viewvc/llvm-project?rev=46364&view=rev
Log:
fix isIntegerConstantExpr evaluation of unary !.
Modified:
cfe/trunk/AST/Expr.cpp
Modified: cfe/trunk/AST/Expr.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/AST/Expr.cpp?rev=46364&r1=46363&r2=46364&view=diff
==============================================================================
--- cfe/trunk/AST/Expr.cpp (original)
+++ cfe/trunk/AST/Expr.cpp Fri Jan 25 13:16:19 2008
@@ -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-commits
mailing list