PR7795: Fix the definition of __WCHAR_MAX__ with -fshort-wchar.
llvm-svn: 110126
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user