[ELF] Simplify code a bit. No functional change.

llvm-svn: 263999
This commit is contained in:
Davide Italiano 2016-03-21 22:44:24 +00:00
parent 7923ce692e
commit 901de03fe2
1 changed files with 1 additions and 3 deletions

View File

@ -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