commit | f00fdc08e6ef5b46a2662a4707c2db03abe4ec75 | [log] [tgz] |
---|---|---|
author | Chris Lattner <sabre@nondot.org> | Fri Jan 25 19:16:19 2008 +0000 |
committer | Chris Lattner <sabre@nondot.org> | Fri Jan 25 19:16:19 2008 +0000 |
tree | 0c4f876378dbe28fdc73b0468f0a5d9c24a65f08 | |
parent | ed27a53fb4967394fa6d111dda26b8dcf1e30c22 [diff] [blame] |
fix isIntegerConstantExpr evaluation of unary !. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@46364 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/AST/Expr.cpp b/AST/Expr.cpp index becce2a..51aa09c 100644 --- a/AST/Expr.cpp +++ b/AST/Expr.cpp
@@ -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())));