Fix MSVC "result of 32-bit shift implicitly converted to 64 bits" warning. NFCI.

llvm-svn: 373729
This commit is contained in:
Simon Pilgrim 2019-10-04 11:24:35 +00:00
parent 4682b9c46b
commit 7de9a5ce60
2 changed files with 2 additions and 2 deletions

View File

@ -206,7 +206,7 @@ public:
}
/// Get the alignment for this content.
uint64_t getAlignment() const { return 1 << P2Align; }
uint64_t getAlignment() const { return 1ull << P2Align; }
/// Get the alignment offset for this content.
uint64_t getAlignmentOffset() const { return AlignmentOffset; }

View File

@ -312,7 +312,7 @@ Error MachOLinkGraphBuilder::graphifyRegularSymbols() {
Twine(KV.first));
NSym.GraphSymbol = &G->addCommonSymbol(
*NSym.Name, NSym.S, getCommonSection(), NSym.Value, 0,
1U << MachO::GET_COMM_ALIGN(NSym.Desc),
1ull << MachO::GET_COMM_ALIGN(NSym.Desc),
NSym.Desc & MachO::N_NO_DEAD_STRIP);
} else {
if (!NSym.Name)