[RuntimeDyld] Propagate another dropped error in RuntimeDyldELF.
authorLang Hames <lhames@gmail.com>
Wed, 27 Apr 2016 22:54:03 +0000 (22:54 +0000)
committerLang Hames <lhames@gmail.com>
Wed, 27 Apr 2016 22:54:03 +0000 (22:54 +0000)
This should fix the PPC64 bots.

llvm-svn: 267810

llvm/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldELF.cpp

index 59f15b0..d36794d 100644 (file)
@@ -1480,7 +1480,8 @@ RuntimeDyldELF::processRelocationRef(
           // In the ELFv1 ABI, a function call may point to the .opd entry,
           // so the final symbol value is calculated based on the relocation
           // values in the .opd section.
-          findOPDEntrySection(Obj, ObjSectionToID, Value);
+          if (auto Err = findOPDEntrySection(Obj, ObjSectionToID, Value))
+            return std::move(Err);
         } else {
           // In the ELFv2 ABI, a function symbol may provide a local entry
           // point, which must be used for direct calls.