[PowerPC] use UINT64_C instead of ul
authorHal Finkel <hfinkel@anl.gov>
Thu, 1 Jan 2015 19:33:59 +0000 (19:33 +0000)
committerHal Finkel <hfinkel@anl.gov>
Thu, 1 Jan 2015 19:33:59 +0000 (19:33 +0000)
Attempting to fix PR22078 (building on 32-bit systems) by replacing my careless
use of 1ul to be a uint64_t constant with UINT64_C(1).

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

lib/Target/PowerPC/PPCISelDAGToDAG.cpp

index c12a82c03b85e97fde7e0c68c3f0c8b237dd16e4..efc0b7fa2f008aed2859f759b346568999ae16ae 100644 (file)
@@ -1127,7 +1127,7 @@ class BitPermutationSelector {
     for (unsigned i = 0; i < Bits.size(); ++i) {
       if (Bits[i].hasValue())
         continue;
-      Mask |= (1ul << i);
+      Mask |= (UINT64_C(1) << i);
     }
 
     return ~Mask;
@@ -1491,12 +1491,12 @@ class BitPermutationSelector {
 
         if (BG.StartIdx <= BG.EndIdx) {
           for (unsigned i = BG.StartIdx; i <= BG.EndIdx; ++i)
-            Mask |= (1ul << i);
+            Mask |= (UINT64_C(1) << i);
         } else {
           for (unsigned i = BG.StartIdx; i < Bits.size(); ++i)
-            Mask |= (1ul << i);
+            Mask |= (UINT64_C(1) << i);
           for (unsigned i = 0; i <= BG.EndIdx; ++i)
-            Mask |= (1ul << i);
+            Mask |= (UINT64_C(1) << i);
         }
       }