fix constants being passed down

This commit is contained in:
Torsten Ruger
2018-03-22 02:38:06 +05:30
parent 01151b4ba7
commit ca3bf6acfa
11 changed files with 15 additions and 14 deletions

View File

@ -9,6 +9,7 @@ module Risc
super(source)
@register = register
@constant = constant
raise "Not Constant #{constant}" if constant.is_a?(Mom::SlotDefinition)
end
attr_accessor :register , :constant