fix the compile while test

This commit is contained in:
Torsten Ruger
2015-07-18 19:02:54 +03:00
parent 3d8fc8819c
commit a554762da8
4 changed files with 30 additions and 19 deletions

View File

@ -60,7 +60,7 @@ module Virtual
# the added instruction will become the new insertion point
def add_code instruction
unless (instruction.is_a?(Instruction) or instruction.is_a?(Register::Instruction))
raise instruction.inspect
raise instruction.to_s
end
@current.add_code(instruction) #insert after current
self