aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGraydon Hoare <[email protected]>2010-11-26 13:03:56 -0800
committerGraydon Hoare <[email protected]>2010-11-26 13:03:56 -0800
commit1600974a3a1dc2c2cbdfef6efdc5887a1dc13218 (patch)
tree8dc5f15e4c23c9b68244b687115cc8fadecd56c7 /src
parentDeclare the memcpy intrinsics properly. (diff)
downloadrust-1600974a3a1dc2c2cbdfef6efdc5887a1dc13218.tar.xz
rust-1600974a3a1dc2c2cbdfef6efdc5887a1dc13218.zip
Avoid segfault due to fallthrough in base case of incr_all_refcounts. We could use a typestate checker in rustc, any time now.
Diffstat (limited to 'src')
-rw-r--r--src/comp/middle/trans.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/comp/middle/trans.rs b/src/comp/middle/trans.rs
index 8aaeba5c..9098d8eb 100644
--- a/src/comp/middle/trans.rs
+++ b/src/comp/middle/trans.rs
@@ -572,6 +572,7 @@ fn incr_all_refcnts(@block_ctxt cx,
ret iter_structural_ty(cx, v, t,
bind incr_all_refcnts(_, _, _));
}
+ ret res(cx, C_nil());
}
fn drop_ty(@block_ctxt cx,