From dddc9259b0f856eeb3c1e9452136f482331bf4a6 Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Sun, 7 Sep 2014 14:47:09 +0800 Subject: [PATCH] py2llvm: run passes before creating EE --- artiq/py2llvm/module.py | 1 + 1 file changed, 1 insertion(+) diff --git a/artiq/py2llvm/module.py b/artiq/py2llvm/module.py index 43c9bd418..a0a03c512 100644 --- a/artiq/py2llvm/module.py +++ b/artiq/py2llvm/module.py @@ -24,6 +24,7 @@ class Module: pass_manager.run(self.llvm_module) def get_ee(self): + self.finalize() return le.ExecutionEngine.new(self.llvm_module) def emit_object(self):