forked from M-Labs/artiq
transforms.llvm_ir_generator: don't crash if embedding is not enabled.
This commit is contained in:
parent
81427af506
commit
3aa5acbaf3
|
@ -412,7 +412,7 @@ class LLVMIRGenerator:
|
|||
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
|
||||
|
|
Loading…
Reference in New Issue