avoid adding risc instructions twice
that causes loops in the chain infinite loops in the code that are hard to debug closes #11
This commit is contained in:
@@ -12,8 +12,7 @@ module Mom
|
||||
@label = label
|
||||
end
|
||||
def to_risc(compiler)
|
||||
label = @label.to_risc(compiler)
|
||||
compiler.add_code Risc::Branch.new(self , label)
|
||||
compiler.add_code Risc::Branch.new(self , @label.risc_label)
|
||||
end
|
||||
end
|
||||
|
||||
|
Reference in New Issue
Block a user