summaryrefslogtreecommitdiffstats
path: root/lld/lib/Core/Resolver.cpp
diff options
context:
space:
mode:
authorRui Ueyama <ruiu@google.com>2014-05-02 22:32:01 +0000
committerRui Ueyama <ruiu@google.com>2014-05-02 22:32:01 +0000
commit20822d924e32da054b55e87e8685f5066861d9b1 (patch)
treea015eedd29136d41ed708ec0336e20ecc9e45e39 /lld/lib/Core/Resolver.cpp
parent745b6688b4735e229a15b5c863d2c3ddb9a25d45 (diff)
downloadbcm5719-llvm-20822d924e32da054b55e87e8685f5066861d9b1.tar.gz
bcm5719-llvm-20822d924e32da054b55e87e8685f5066861d9b1.zip
Return the expression result directly.
llvm-svn: 207878
Diffstat (limited to 'lld/lib/Core/Resolver.cpp')
-rw-r--r--lld/lib/Core/Resolver.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/lld/lib/Core/Resolver.cpp b/lld/lib/Core/Resolver.cpp
index cd95b6b1de3..d139f8a4625 100644
--- a/lld/lib/Core/Resolver.cpp
+++ b/lld/lib/Core/Resolver.cpp
@@ -162,9 +162,7 @@ bool Resolver::maybeAddSectionGroupOrGnuLinkOnce(const DefinedAtom &atom) {
"Internal Error: The group atom could only be a defined atom");
// The atoms should be of the same content type, reject invalid group
// resolution behaviors.
- if (atom.contentType() != prevGroup->contentType())
- return false;
- return true;
+ return atom.contentType() == prevGroup->contentType();
}
for (const Reference *r : atom) {
OpenPOWER on IntegriCloud