[PATCH] D78676: llvm: IPO: handle IRMover error handling, bug #45636
Sergei Trofimovich via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sat Apr 25 11:40:26 PDT 2020
This revision was automatically updated to reflect the committed changes.
Closed by commit rG09684b08d3b5: llvm: IPO: handle IRMover error handling, bug #45636 (authored by trofi).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D78676/new/
https://reviews.llvm.org/D78676
Files:
llvm/lib/Transforms/IPO/FunctionImport.cpp
Index: llvm/lib/Transforms/IPO/FunctionImport.cpp
===================================================================
--- llvm/lib/Transforms/IPO/FunctionImport.cpp
+++ llvm/lib/Transforms/IPO/FunctionImport.cpp
@@ -1243,10 +1243,12 @@
<< " from " << SrcModule->getSourceFileName() << "\n";
}
- if (Mover.move(std::move(SrcModule), GlobalsToImport.getArrayRef(),
- [](GlobalValue &, IRMover::ValueAdder) {},
- /*IsPerformingImport=*/true))
- report_fatal_error("Function Import: link error");
+ if (Error Err = Mover.move(
+ std::move(SrcModule), GlobalsToImport.getArrayRef(),
+ [](GlobalValue &, IRMover::ValueAdder) {},
+ /*IsPerformingImport=*/true))
+ report_fatal_error("Function Import: link error: " +
+ toString(std::move(Err)));
ImportedCount += GlobalsToImport.size();
NumImportedModules++;
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D78676.260128.patch
Type: text/x-patch
Size: 946 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200425/cccafd87/attachment.bin>
More information about the llvm-commits
mailing list