Fix MIR text output for terminators since they were made optional.

This commit is contained in:
Scott Olson 2016-01-07 15:16:07 -06:00
parent 25d1f4bc21
commit 8e293676ee

View file

@ -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)
}