[PATCH] D75912: Missing Dyld error handling

Aleksandr via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Mar 10 06:24:10 PDT 2020


keder updated this revision to Diff 249342.
keder added a comment.

added more context


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D75912/new/

https://reviews.llvm.org/D75912

Files:
  llvm/lib/ExecutionEngine/MCJIT/MCJIT.cpp


Index: llvm/lib/ExecutionEngine/MCJIT/MCJIT.cpp
===================================================================
--- llvm/lib/ExecutionEngine/MCJIT/MCJIT.cpp
+++ llvm/lib/ExecutionEngine/MCJIT/MCJIT.cpp
@@ -239,6 +239,9 @@
   // Resolve any outstanding relocations.
   Dyld.resolveRelocations();
 
+  if (Dyld.hasError())
+    report_fatal_error(Dyld.getErrorString());
+
   OwnedModules.markAllLoadedModulesAsFinalized();
 
   // Register EH frame data for any module we own which has been loaded


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D75912.249342.patch
Type: text/x-patch
Size: 501 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200310/cf3ba7e6/attachment.bin>


More information about the llvm-commits mailing list