Skip to content

Commit 3aa5acb

Browse files
author
whitequark
committedJan 3, 2016
transforms.llvm_ir_generator: don't crash if embedding is not enabled.
1 parent 81427af commit 3aa5acb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

Diff for: ‎artiq/compiler/transforms/llvm_ir_generator.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -412,7 +412,7 @@ def process(self, functions, attribute_writeback):
412412
if any(functions):
413413
self.debug_info_emitter.finalize(functions[0].loc.source_buffer)
414414

415-
if attribute_writeback:
415+
if attribute_writeback and self.object_map is not None:
416416
self.emit_attribute_writeback()
417417

418418
return self.llmodule

0 commit comments

Comments
 (0)
Please sign in to comment.