summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/SelectionDAG
diff options
context:
space:
mode:
authorSimon Pilgrim <llvm-dev@redking.me.uk>2019-07-09 15:28:57 +0000
committerSimon Pilgrim <llvm-dev@redking.me.uk>2019-07-09 15:28:57 +0000
commit57603cbde8b8333df233eb04841bc1b77e1747d1 (patch)
treef9f1b876d67b1787cf0bf19b8ccadca18c399515 /llvm/lib/CodeGen/SelectionDAG
parentd3d88d08b5d963965488a2c07225671e968dd0ff (diff)
downloadbcm5719-llvm-57603cbde8b8333df233eb04841bc1b77e1747d1.tar.gz
bcm5719-llvm-57603cbde8b8333df233eb04841bc1b77e1747d1.zip
[DAGCombine] LoadedSlice - keep getOffsetFromBase() uint64_t offset. NFCI.
Keep the uint64_t type from getOffsetFromBase() to stop truncation/extension overflow warnings in MSVC in alignment math. llvm-svn: 365504
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG')
-rw-r--r--llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp b/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
index 96164f3d980..cd5de4c1400 100644
--- a/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
@@ -14364,7 +14364,7 @@ struct LoadedSlice {
/// Get the alignment of the load used for this slice.
unsigned getAlignment() const {
unsigned Alignment = Origin->getAlignment();
- unsigned Offset = getOffsetFromBase();
+ uint64_t Offset = getOffsetFromBase();
if (Offset != 0)
Alignment = MinAlign(Alignment, Alignment + Offset);
return Alignment;
OpenPOWER on IntegriCloud