[ORC] Fix ORC on platforms without indirection support.
authorLang Hames <lhames@gmail.com>
Wed, 28 Mar 2018 03:41:45 +0000 (03:41 +0000)
committerLang Hames <lhames@gmail.com>
Wed, 28 Mar 2018 03:41:45 +0000 (03:41 +0000)
commita95b0df5eddbe7fa1e9f8fe0b1ff62427e1c0318
treef51738f9e554267507fd5b0f1c0bfc2ac6ec042a
parent816127ea17edae0c7e2d5224d86e98181a1c602c
[ORC] Fix ORC on platforms without indirection support.

Previously this crashed because a nullptr (returned by
createLocalIndirectStubsManagerBuilder() on platforms without
indirection support) functor was unconditionally invoked.

Patch by Andres Freund. Thanks Andres!

llvm-svn: 328687
llvm/lib/ExecutionEngine/Orc/IndirectionUtils.cpp
llvm/unittests/ExecutionEngine/Orc/OrcCAPITest.cpp
llvm/unittests/ExecutionEngine/Orc/OrcTestCommon.h
llvm/unittests/ExecutionEngine/Orc/RTDyldObjectLinkingLayerTest.cpp