File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1690,7 +1690,7 @@ impl<'a> GraphvizPrinter<'a> {
16901690 writeln ! ( f, r#"<TABLE BORDER="0" CELLBORDER="1" CELLSPACING="0">"# ) ?;
16911691 writeln ! ( f, r#"<TR><TD BGCOLOR="gray">{block_id}</TD></TR>"# ) ?;
16921692 for insn_id in block. params . iter ( ) . chain ( & block. insns ) {
1693- let insn_id = self . fun . union_find . find_const ( * insn_id) ;
1693+ let insn_id = self . fun . union_find . borrow ( ) . find_const ( * insn_id) ;
16941694 let insn = self . fun . find ( insn_id) ;
16951695 self . fmt_insn ( insn_id, insn, f) ?;
16961696 }
@@ -1713,9 +1713,8 @@ impl<'a> std::fmt::Display for GraphvizPrinter<'a> {
17131713 }
17141714 for block_id in fun. rpo ( ) {
17151715 for insn_id in & fun. blocks [ block_id. 0 ] . insns {
1716- let insn_id = fun. union_find . find_const ( * insn_id) ;
1717- let insn = & fun. insns [ insn_id. 0 ] ;
1718- match insn {
1716+ let insn_id = fun. union_find . borrow ( ) . find_const ( * insn_id) ;
1717+ match self . fun . find ( insn_id) {
17191718 Insn :: IfFalse { target : BranchEdge { target, .. } , .. } |
17201719 Insn :: IfTrue { target : BranchEdge { target, .. } , .. } |
17211720 Insn :: Jump ( BranchEdge { target, .. } )
You can’t perform that action at this time.
0 commit comments