mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-04 06:09:05 +00:00
Use auto and clang-format this snippet.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@208421 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
f35cc81810
commit
b4c14b4ad3
@ -896,14 +896,16 @@ static unsigned enforceKnownAlignment(Value *V, unsigned Align,
|
||||
return PrefAlign;
|
||||
}
|
||||
|
||||
if (GlobalValue *GV = dyn_cast<GlobalValue>(V)) {
|
||||
if (auto *GV = dyn_cast<GlobalValue>(V)) {
|
||||
// If there is a large requested alignment and we can, bump up the alignment
|
||||
// of the global.
|
||||
if (GV->isDeclaration()) return Align;
|
||||
if (GV->isDeclaration())
|
||||
return Align;
|
||||
// If the memory we set aside for the global may not be the memory used by
|
||||
// the final program then it is impossible for us to reliably enforce the
|
||||
// preferred alignment.
|
||||
if (GV->isWeakForLinker()) return Align;
|
||||
if (GV->isWeakForLinker())
|
||||
return Align;
|
||||
|
||||
if (GV->getAlignment() >= PrefAlign)
|
||||
return GV->getAlignment();
|
||||
|
Loading…
Reference in New Issue
Block a user