aboutsummaryrefslogtreecommitdiff
path: root/src/boot/me/resolve.ml
diff options
context:
space:
mode:
authorGraydon Hoare <[email protected]>2010-08-19 18:41:55 -0700
committerGraydon Hoare <[email protected]>2010-08-19 18:42:32 -0700
commitb34cb1b631d7979307bec26905a1a9298ec4f17a (patch)
tree0d3f0bf4330e64795297f45227040f6f73980edd /src/boot/me/resolve.ml
parentMake _io.buf_reader read more than 0 bytes at a time. (diff)
downloadrust-b34cb1b631d7979307bec26905a1a9298ec4f17a.tar.xz
rust-b34cb1b631d7979307bec26905a1a9298ec4f17a.zip
Fix a bunch of typestate bugs in handling if and while statement wirings.
Diffstat (limited to 'src/boot/me/resolve.ml')
-rw-r--r--src/boot/me/resolve.ml1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/boot/me/resolve.ml b/src/boot/me/resolve.ml
index bf11ad23..25eb544a 100644
--- a/src/boot/me/resolve.ml
+++ b/src/boot/me/resolve.ml
@@ -48,6 +48,7 @@ let stmt_collecting_visitor
: Walk.visitor =
let block_ids = Stack.create () in
let visit_block_pre (b:Ast.block) =
+ htab_put cx.ctxt_all_blocks b.id b.node;
Stack.push b.id block_ids;
inner.Walk.visit_block_pre b
in