[cfe-commits] r123291 - /cfe/trunk/lib/Sema/SemaExpr.cpp
Francois Pichet
pichet2000 at gmail.com
Tue Jan 11 15:38:13 PST 2011
Author: fpichet
Date: Tue Jan 11 17:38:13 2011
New Revision: 123291
URL: http://llvm.org/viewvc/llvm-project?rev=123291&view=rev
Log:
Add a comment for r123231.
Modified:
cfe/trunk/lib/Sema/SemaExpr.cpp
Modified: cfe/trunk/lib/Sema/SemaExpr.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Sema/SemaExpr.cpp?rev=123291&r1=123290&r2=123291&view=diff
==============================================================================
--- cfe/trunk/lib/Sema/SemaExpr.cpp (original)
+++ cfe/trunk/lib/Sema/SemaExpr.cpp Tue Jan 11 17:38:13 2011
@@ -2497,6 +2497,8 @@
// 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;
More information about the cfe-commits
mailing list