Reverse the condition for readability.

llvm-svn: 195282
This commit is contained in:
Rui Ueyama 2013-11-20 23:54:52 +00:00
parent 9114439df2
commit 9c9d7d14d1
1 changed files with 3 additions and 3 deletions

View File

@ -60,9 +60,9 @@ ErrorOr<StringRef> PECOFFFileNode::getPath(const LinkingContext &) const {
}
ErrorOr<StringRef> PECOFFLibraryNode::getPath(const LinkingContext &) const {
if (!_path.endswith_lower(".lib"))
return _ctx.searchLibraryFile(_ctx.allocateString(_path.str() + ".lib"));
return _ctx.searchLibraryFile(_path);
if (_path.endswith_lower(".lib"))
return _ctx.searchLibraryFile(_path);
return _ctx.searchLibraryFile(_ctx.allocateString(_path.str() + ".lib"));
}
} // end anonymous namespace