We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1952b1f commit cfedad1Copy full SHA for cfedad1
src/base.rs
@@ -117,6 +117,9 @@ pub(crate) fn codegen_fn<'tcx>(
117
context.compute_domtree();
118
context.eliminate_unreachable_code(cx.module.isa()).unwrap();
119
context.dce(cx.module.isa()).unwrap();
120
+ // Some Cranelift optimizations expect the domtree to not yet be computed and as such don't
121
+ // invalidate it when it would change.
122
+ context.domtree.clear();
123
124
context.want_disasm = crate::pretty_clif::should_write_ir(tcx);
125
0 commit comments