aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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: