]> granicus.if.org Git - clang/commitdiff
avoid requiring people to update from llvm svn.
authorChris Lattner <sabre@nondot.org>
Mon, 16 Jul 2007 21:04:56 +0000 (21:04 +0000)
committerChris Lattner <sabre@nondot.org>
Mon, 16 Jul 2007 21:04:56 +0000 (21:04 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@39925 91177308-0d34-0410-b5e6-96231b3b80d8

AST/Expr.cpp

index ae344cc827e9d76496e639d474b839c4e415d980..2edea9796d4992f31b0b0dc1c341ef9b4a3e31a1 100644 (file)
@@ -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: