From 2b9ac344d8829833bd84ec990d2b5a7bc3f4168d Mon Sep 17 00:00:00 2001 From: whitequark Date: Thu, 23 Jul 2015 07:57:35 +0300 Subject: [PATCH] Verify LLVM module in compiler.textbench.jit. --- artiq/compiler/testbench/jit.py | 1 + 1 file changed, 1 insertion(+) diff --git a/artiq/compiler/testbench/jit.py b/artiq/compiler/testbench/jit.py index 3febb9d67..7d7d85227 100644 --- a/artiq/compiler/testbench/jit.py +++ b/artiq/compiler/testbench/jit.py @@ -23,6 +23,7 @@ def main(): lltarget = llvm.Target.from_default_triple() llmachine = lltarget.create_target_machine() llparsedmod = llvm.parse_assembly(str(llmod)) + llparsedmod.verify() lljit = llvm.create_mcjit_compiler(llparsedmod, llmachine) lljit.finalize_object() llmain = lljit.get_pointer_to_global(llparsedmod.get_function(llmod.name + ".__modinit__"))