forked from OSchip/llvm-project
[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
This commit is contained in:
parent
d3d88d08b5
commit
57603cbde8
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue