PR7795: Fix the definition of __WCHAR_MAX__ with -fshort-wchar.

llvm-svn: 110126
This commit is contained in:
Eli Friedman
2010-08-03 17:34:19 +00:00
parent 839bbacfb2
commit 865afc96f7
2 changed files with 8 additions and 1 deletions

View File

@@ -173,7 +173,7 @@ static void DefineTypeSize(llvm::StringRef MacroName, unsigned TypeWidth,
assert(TypeWidth != 1);
MaxVal = ~0ULL >> (65-TypeWidth);
} else
MaxVal = ~0LL >> (64-TypeWidth);
MaxVal = ~0ULL >> (64-TypeWidth);
Builder.defineMacro(MacroName, llvm::Twine(MaxVal) + ValSuffix);
}