aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2007-07-16 21:04:56 +0000
committerChris Lattner <sabre@nondot.org>2007-07-16 21:04:56 +0000
commitf0fbcb356bc4eb5f6467dc4fc4bc447e9a630102 (patch)
treef6bf0cbf1a4ee6fc8156be750f102abe0c261d93
parentca51c97fbb10b9d48e1857e01c532493f87cd5f0 (diff)
avoid requiring people to update from llvm svn.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@39925 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--AST/Expr.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/AST/Expr.cpp b/AST/Expr.cpp
index ae344cc827..2edea9796d 100644
--- a/AST/Expr.cpp
+++ b/AST/Expr.cpp
@@ -289,7 +289,7 @@ bool Expr::isIntegerConstantExpr(llvm::APSInt &Result, ASTContext &Ctx,
const CharacterLiteral *CL = cast<CharacterLiteral>(this);
Result.zextOrTrunc(Ctx.getTypeSize(getType(), CL->getLoc()));
Result = CL->getValue();
- Result.setIsSigned(getType()->isSignedIntegerType());
+ Result.setIsUnsigned(!getType()->isSignedIntegerType());
break;
}
case DeclRefExprClass: