forked from OSchip/llvm-project
Fix MSVC "result of 32-bit shift implicitly converted to 64 bits" warning. NFCI.
llvm-svn: 373729
This commit is contained in:
parent
4682b9c46b
commit
7de9a5ce60
|
@ -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; }
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue