fix isIntegerConstantExpr evaluation of unary !.

llvm-svn: 46364
This commit is contained in:
Chris Lattner 2008-01-25 19:16:19 +00:00
parent 8f6970663a
commit de001c186e
1 changed files with 1 additions and 1 deletions

View File

@ -703,7 +703,7 @@ bool Expr::isIntegerConstantExpr(llvm::APSInt &Result, ASTContext &Ctx,
}
break;
case UnaryOperator::LNot: {
bool Val = Result != 0;
bool Val = Result == 0;
Result.zextOrTrunc(
static_cast<uint32_t>(Ctx.getTypeSize(getType(),
Exp->getOperatorLoc())));