Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix a bug with passthrough assignment folder.

  • Loading branch information...
commit a6e50004d597e764daf677f95f2aabf75c7ada76 1 parent d3ee145
@whitequark authored
View
4 lib/furnace-avm2/transform/fold_passthrough_assignments.rb
@@ -28,7 +28,9 @@ def transform(cfg)
sorted_nodes.reduce(set_value) do |prev, (node, upper)|
[ :read_barrier, :write_barrier ].each do |key|
- upper.metadata[key].merge prev.metadata[key]
+ if prev.metadata.has_key? key
+ upper.metadata[key].merge prev.metadata[key]
+ end
end
node.update(prev.type, prev.children)
View
2  lib/furnace-avm2/transform/ssa_transform.rb
@@ -291,7 +291,7 @@ def get_stack(block, base_stack)
def r(ids)
@next_rlabel += 1
- AST::Node.new(:r, ids, { rlabel: @next_rlabel })
+ AST::Node.new(:r, ids) # , { label: @next_rlabel })
end
def s(id, wat)
Please sign in to comment.
Something went wrong with that request. Please try again.