summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRui Ueyama <ruiu@google.com>2013-11-20 23:54:52 +0000
committerRui Ueyama <ruiu@google.com>2013-11-20 23:54:52 +0000
commit9c9d7d14d1b53d4147d9438ab3bc3f13ce23dd43 (patch)
treecf32428208572e0bd36deaf6feca221d5737ee01
parent9114439df2293a277709f94004d738f0cc830d57 (diff)
downloadbcm5719-llvm-9c9d7d14d1b53d4147d9438ab3bc3f13ce23dd43.tar.gz
bcm5719-llvm-9c9d7d14d1b53d4147d9438ab3bc3f13ce23dd43.zip
Reverse the condition for readability.
llvm-svn: 195282
-rw-r--r--lld/lib/Driver/WinLinkInputGraph.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/lld/lib/Driver/WinLinkInputGraph.cpp b/lld/lib/Driver/WinLinkInputGraph.cpp
index b8bfcc131ab..7efdf17a86a 100644
--- a/lld/lib/Driver/WinLinkInputGraph.cpp
+++ b/lld/lib/Driver/WinLinkInputGraph.cpp
@@ -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
OpenPOWER on IntegriCloud