зеркало из https://github.com/microsoft/clang-1.git
Add a comment for r123231.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@123291 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Родитель
203e6a322a
Коммит
2432320a99
|
@ -2497,6 +2497,8 @@ ExprResult Sema::ActOnNumericConstant(const Token &Tok) {
|
|||
// Does it fit in a unsigned long long?
|
||||
if (ResultVal.isIntN(LongLongSize)) {
|
||||
// Does it fit in a signed long long?
|
||||
// To be compatible with MSVC, hex integer literals ending with the
|
||||
// LL or i64 suffix are always signed in Microsoft mode.
|
||||
if (!Literal.isUnsigned && (ResultVal[LongLongSize-1] == 0 ||
|
||||
(getLangOptions().Microsoft && Literal.isLongLong)))
|
||||
Ty = Context.LongLongTy;
|
||||
|
|
Загрузка…
Ссылка в новой задаче