From ed17f7dc0d38386bdeef14acc317912a11333301 Mon Sep 17 00:00:00 2001 From: Lang Hames Date: Mon, 26 Apr 2021 21:10:11 -0700 Subject: [PATCH] [ORC] Initialize the native asm printer and parser in Orc C-API unit test. --- unittests/ExecutionEngine/Orc/OrcCAPITest.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/unittests/ExecutionEngine/Orc/OrcCAPITest.cpp b/unittests/ExecutionEngine/Orc/OrcCAPITest.cpp index eaad4a20683..58e901d6064 100644 --- a/unittests/ExecutionEngine/Orc/OrcCAPITest.cpp +++ b/unittests/ExecutionEngine/Orc/OrcCAPITest.cpp @@ -36,6 +36,8 @@ protected: public: static void SetUpTestCase() { LLVMInitializeNativeTarget(); + LLVMInitializeNativeTargetAsmParser(); + LLVMInitializeNativeTargetAsmPrinter(); // Attempt to set up a JIT instance once to verify that we can. LLVMOrcJITTargetMachineBuilderRef JTMB = nullptr;