Skip to content

Commit

Permalink
transforms.llvm_ir_generator: don't crash if embedding is not enabled.
Browse files Browse the repository at this point in the history
whitequark committed Jan 3, 2016
1 parent 81427af commit 3aa5acb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion artiq/compiler/transforms/llvm_ir_generator.py
Original file line number Diff line number Diff line change
@@ -412,7 +412,7 @@ def process(self, functions, attribute_writeback):
if any(functions):
self.debug_info_emitter.finalize(functions[0].loc.source_buffer)

if attribute_writeback:
if attribute_writeback and self.object_map is not None:
self.emit_attribute_writeback()

return self.llmodule

0 comments on commit 3aa5acb

Please sign in to comment.