summaryrefslogtreecommitdiffstats
path: root/llvm/tools/gold/gold-plugin.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/tools/gold/gold-plugin.cpp')
-rw-r--r--llvm/tools/gold/gold-plugin.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/tools/gold/gold-plugin.cpp b/llvm/tools/gold/gold-plugin.cpp
index a74bc3ad750..ec27c26cce9 100644
--- a/llvm/tools/gold/gold-plugin.cpp
+++ b/llvm/tools/gold/gold-plugin.cpp
@@ -1090,8 +1090,8 @@ static bool linkInModule(LLVMContext &Context, IRMover &L, claimed_file &F,
M->setTargetTriple(DefaultTriple);
}
- if (!L.move(std::move(M), Keep, [](GlobalValue &, IRMover::ValueAdder) {}))
- return false;
+ if (L.move(std::move(M), Keep, [](GlobalValue &, IRMover::ValueAdder) {}))
+ return true;
for (const auto &I : Realign) {
GlobalValue *Dst = L.getModule().getNamedValue(I.first());
@@ -1100,7 +1100,7 @@ static bool linkInModule(LLVMContext &Context, IRMover &L, claimed_file &F,
cast<GlobalVariable>(Dst)->setAlignment(I.second);
}
- return true;
+ return false;
}
/// Perform the ThinLTO backend on a single module, invoking the LTO and codegen
OpenPOWER on IntegriCloud