diff options
author | Kevin Enderby <enderby@apple.com> | 2015-10-21 17:13:20 +0000 |
---|---|---|
committer | Kevin Enderby <enderby@apple.com> | 2015-10-21 17:13:20 +0000 |
commit | da9dd05011be9f9d6576299a24aee639d212faff (patch) | |
tree | 908d4c7021df8da6f3f53a77b4cc630fd9806d4e /llvm/lib/ExecutionEngine/MCJIT/MCJIT.cpp | |
parent | 6e91c598b9f3b2fa5f7cfd158cb6eebb6a6ae8f4 (diff) | |
download | bcm5719-llvm-da9dd05011be9f9d6576299a24aee639d212faff.tar.gz bcm5719-llvm-da9dd05011be9f9d6576299a24aee639d212faff.zip |
Backing out commit r250906 as it broke lld.
llvm-svn: 250908
Diffstat (limited to 'llvm/lib/ExecutionEngine/MCJIT/MCJIT.cpp')
-rw-r--r-- | llvm/lib/ExecutionEngine/MCJIT/MCJIT.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/ExecutionEngine/MCJIT/MCJIT.cpp b/llvm/lib/ExecutionEngine/MCJIT/MCJIT.cpp index a7238e4ebc3..bbe4432d36b 100644 --- a/llvm/lib/ExecutionEngine/MCJIT/MCJIT.cpp +++ b/llvm/lib/ExecutionEngine/MCJIT/MCJIT.cpp @@ -318,10 +318,10 @@ RuntimeDyld::SymbolInfo MCJIT::findSymbol(const std::string &Name, object::Archive *A = OB.getBinary(); // Look for our symbols in each Archive object::Archive::child_iterator ChildIt = A->findSym(Name); - if (*ChildIt && ChildIt != A->child_end()) { + if (ChildIt != A->child_end()) { // FIXME: Support nested archives? ErrorOr<std::unique_ptr<object::Binary>> ChildBinOrErr = - (*ChildIt)->getAsBinary(); + ChildIt->getAsBinary(); if (ChildBinOrErr.getError()) continue; std::unique_ptr<object::Binary> &ChildBin = ChildBinOrErr.get(); |