summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/PowerPC/PPCISelDAGToDAG.cpp
diff options
context:
space:
mode:
authorHal Finkel <hfinkel@anl.gov>2015-01-01 19:33:59 +0000
committerHal Finkel <hfinkel@anl.gov>2015-01-01 19:33:59 +0000
commitddf8d7d155fccfd97f85469ae4fba5dd0537d263 (patch)
tree4fa9e81820d9efe725c6e2efef622dd62298ad77 /llvm/lib/Target/PowerPC/PPCISelDAGToDAG.cpp
parent40898a5a93b154f19a1c73f407cc5175581882d7 (diff)
downloadbcm5719-llvm-ddf8d7d155fccfd97f85469ae4fba5dd0537d263.tar.gz
bcm5719-llvm-ddf8d7d155fccfd97f85469ae4fba5dd0537d263.zip
[PowerPC] use UINT64_C instead of ul
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). llvm-svn: 225066
Diffstat (limited to 'llvm/lib/Target/PowerPC/PPCISelDAGToDAG.cpp')
-rw-r--r--llvm/lib/Target/PowerPC/PPCISelDAGToDAG.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/llvm/lib/Target/PowerPC/PPCISelDAGToDAG.cpp b/llvm/lib/Target/PowerPC/PPCISelDAGToDAG.cpp
index c12a82c03b8..efc0b7fa2f0 100644
--- a/llvm/lib/Target/PowerPC/PPCISelDAGToDAG.cpp
+++ b/llvm/lib/Target/PowerPC/PPCISelDAGToDAG.cpp
@@ -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);
}
}
OpenPOWER on IntegriCloud