diff options
| author | Graydon Hoare <[email protected]> | 2010-11-26 13:03:56 -0800 |
|---|---|---|
| committer | Graydon Hoare <[email protected]> | 2010-11-26 13:03:56 -0800 |
| commit | 1600974a3a1dc2c2cbdfef6efdc5887a1dc13218 (patch) | |
| tree | 8dc5f15e4c23c9b68244b687115cc8fadecd56c7 /src | |
| parent | Declare the memcpy intrinsics properly. (diff) | |
| download | rust-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.rs | 1 |
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, |