adds value to used regs and test for it

This commit is contained in:
Torsten Ruger
2015-10-15 09:07:47 +03:00
parent 300ce24739
commit e436581ce8
5 changed files with 9 additions and 14 deletions

View File

@ -13,7 +13,7 @@ module Phisol
def on_int statement
int = statement.first
reg = use_reg :int
reg = use_reg :Integer , int
@method.source.add_code Register::LoadConstant.new( statement, int , reg )
return reg
end