mirror of
https://github.com/m-labs/artiq.git
synced 2024-12-25 03:08:27 +08:00
ir: keep loc when copying.
This commit is contained in:
parent
690b2fd034
commit
33c3b3377e
@ -167,6 +167,7 @@ class Instruction(User):
|
||||
self_copy = self.__class__.__new__(self.__class__)
|
||||
Instruction.__init__(self_copy, list(map(mapper, self.operands)),
|
||||
self.type, self.name)
|
||||
self_copy.loc = self.loc
|
||||
return self_copy
|
||||
|
||||
def set_basic_block(self, new_basic_block):
|
||||
|
Loading…
Reference in New Issue
Block a user