Skip to content

Commit

Permalink
Fix MIR text output for terminators since they were made optional.
Browse files Browse the repository at this point in the history
  • Loading branch information
solson committed Jan 7, 2016
1 parent 25d1f4b commit 8e29367
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/librustc_mir/pretty.rs
Expand Up @@ -39,7 +39,7 @@ fn write_basic_block<W: Write>(block: BasicBlock, mir: &Mir, w: &mut W) -> io::R
}

// Terminator at the bottom.
try!(writeln!(w, "{0}{0}{1:?};", INDENT, data.terminator));
try!(writeln!(w, "{0}{0}{1:?};", INDENT, data.terminator()));

writeln!(w, "{}}}", INDENT)
}
Expand Down

0 comments on commit 8e29367

Please sign in to comment.