From def5c175e7f08d185a4dde2252532dd934ea156e Mon Sep 17 00:00:00 2001 From: Lang Hames Date: Wed, 27 Apr 2016 22:54:03 +0000 Subject: [PATCH] [RuntimeDyld] Propagate another dropped error in RuntimeDyldELF. This should fix the PPC64 bots. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@267810 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/ExecutionEngine/RuntimeDyld/RuntimeDyldELF.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldELF.cpp b/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldELF.cpp index 59f15b07b38..d36794dc704 100644 --- a/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldELF.cpp +++ b/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldELF.cpp @@ -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.