]> granicus.if.org Git - clang/commitdiff
Fix win64 compilation of constants like 0xFFFFFFFFFFFFFFFFULL
authorNate Begeman <natebegeman@mac.com>
Wed, 21 Jul 2010 02:02:56 +0000 (02:02 +0000)
committerNate Begeman <natebegeman@mac.com>
Wed, 21 Jul 2010 02:02:56 +0000 (02:02 +0000)
intmax_t is __int64 (long long to clang), per VS 2010 stdint.h

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@108980 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Basic/Targets.cpp

index fdf63e738b53be3e1bec286271e46e33f356ced9..4c6a12c23820201b4c88cd2267ba9cfc1ba8a465 100644 (file)
@@ -1447,7 +1447,9 @@ public:
     TLSSupported = false;
     WCharType = UnsignedShort;
     LongWidth = LongAlign = 32;
-    DoubleAlign = LongLongAlign = 64;
+    IntMaxType = SignedLongLong;
+    UIntMaxType = UnsignedLongLong;
+    Int64Type = SignedLongLong;
   }
   virtual void getTargetDefines(const LangOptions &Opts,
                                 MacroBuilder &Builder) const {