Style cleanup in compareByPosition().

Differential Revision:	D7394
Reported by:	ruiu
Reviewed by:	ruiu

llvm-svn: 228094
This commit is contained in:
Davide Italiano 2015-02-04 00:44:52 +00:00
parent 69ba0167b3
commit 40680078e7
1 changed files with 2 additions and 7 deletions

View File

@ -83,15 +83,10 @@ DefinedAtom::ContentPermissions DefinedAtom::permissions(ContentType type) {
bool DefinedAtom::compareByPosition(const DefinedAtom *lhs,
const DefinedAtom *rhs) {
const File *lhsFile;
const File *rhsFile;
if (lhs == rhs)
return false;
lhsFile = &lhs->file();
rhsFile = &rhs->file();
const File *lhsFile = &lhs->file();
const File *rhsFile = &rhs->file();
if (lhsFile->ordinal() != rhsFile->ordinal())
return lhsFile->ordinal() < rhsFile->ordinal();
assert(lhs->ordinal() != rhs->ordinal());