diff options
| -rw-r--r-- | clang/AST/Expr.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/AST/Expr.cpp b/clang/AST/Expr.cpp index ae344cc827e..2edea9796d4 100644 --- a/clang/AST/Expr.cpp +++ b/clang/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: |

