Skip to content

Commit 0aa8eeb

Browse files
committed
Use -Z force-dropflag-checks=on/off for emitting sanity-check.
1 parent 1c7d05a commit 0aa8eeb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/librustc_trans/trans/glue.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ fn trans_struct_drop_flag<'blk, 'tcx>(mut bcx: Block<'blk, 'tcx>,
237237
let drop_flag_llty = type_of(bcx.fcx.ccx, bcx.tcx().dtor_type());
238238
let init_val = C_integral(drop_flag_llty, adt::DTOR_NEEDED as u64, false);
239239

240-
let bcx = if bcx.tcx().sess.opts.debuginfo == NoDebugInfo {
240+
let bcx = if !bcx.ccx().check_drop_flag_for_sanity() {
241241
bcx
242242
} else {
243243
let drop_flag_llty = type_of(bcx.fcx.ccx, bcx.tcx().dtor_type());

0 commit comments

Comments
 (0)