aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGraydon Hoare <[email protected]>2011-04-29 14:20:51 -0700
committerGraydon Hoare <[email protected]>2011-04-29 15:06:53 -0700
commitb9babe47da390ea128d835d898e3acbd066f1686 (patch)
treeab34993b5859d3e06aca0eaf31c2207278b6bdf3
parentrustc: First steps to determine whether tydescs escape (diff)
downloadrust-b9babe47da390ea128d835d898e3acbd066f1686.tar.xz
rust-b9babe47da390ea128d835d898e3acbd066f1686.zip
Temporarily disable dtors; they broke self-hosting.
-rw-r--r--src/comp/middle/trans.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/comp/middle/trans.rs b/src/comp/middle/trans.rs
index beb86e17..e61768a1 100644
--- a/src/comp/middle/trans.rs
+++ b/src/comp/middle/trans.rs
@@ -1919,7 +1919,9 @@ fn make_drop_glue(@block_ctxt cx, ValueRef v0, ty.t t) {
C_int(abi.obj_body_elt_tydesc)));
auto tydesc = cx.build.Load(tydescptr);
- auto cx_ = maybe_call_dtor(cx, o);
+ // FIXME: disabled for now.
+ // auto cx_ = maybe_call_dtor(cx, o);
+ auto cx_ = cx;
// Call through the obj's own fields-drop glue first.
call_tydesc_glue_full(cx_, body, tydesc,