forked from OSchip/llvm-project
[ELF] Simplify code a bit. No functional change.
llvm-svn: 263999
This commit is contained in:
parent
7923ce692e
commit
901de03fe2
|
@ -157,9 +157,7 @@ static int compareCommons(DefinedCommon *A, DefinedCommon *B) {
|
|||
if (Config->WarnCommon)
|
||||
warning("multiple common of " + A->getName());
|
||||
A->Alignment = B->Alignment = std::max(A->Alignment, B->Alignment);
|
||||
if (A->Size < B->Size)
|
||||
return -1;
|
||||
return 1;
|
||||
return A->Size < B->Size ? -1 : 1;
|
||||
}
|
||||
|
||||
// Returns 1, 0 or -1 if this symbol should take precedence
|
||||
|
|
Loading…
Reference in New Issue