summaryrefslogtreecommitdiffstats
path: root/lld/COFF/SymbolTable.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lld/COFF/SymbolTable.cpp')
-rw-r--r--lld/COFF/SymbolTable.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lld/COFF/SymbolTable.cpp b/lld/COFF/SymbolTable.cpp
index 410179cb94e..1fb450b9e6b 100644
--- a/lld/COFF/SymbolTable.cpp
+++ b/lld/COFF/SymbolTable.cpp
@@ -401,7 +401,7 @@ ObjectFile *SymbolTable::createLTOObject(LTOCodeGenerator *CG) {
CG->addMustPreserveSymbol(S->getName());
}
- CG->setModule(BitcodeFiles[0]->releaseModule());
+ CG->setModule(BitcodeFiles[0]->takeModule());
for (unsigned I = 1, E = BitcodeFiles.size(); I != E; ++I)
CG->addModule(BitcodeFiles[I]->getModule());
OpenPOWER on IntegriCloud