Fix compilation failure introduced in r241093.

llvm-svn: 241096
This commit is contained in:
Alex Lorenz 2015-06-30 18:32:02 +00:00
parent e3ab564e4d
commit eb5112bfa8
1 changed files with 2 additions and 2 deletions

View File

@ -131,10 +131,10 @@ void MIRPrinter::convert(const Module &M, yaml::MachineBasicBlock &YamlMBB,
YamlMBB.Alignment = MBB.getAlignment();
YamlMBB.AddressTaken = MBB.hasAddressTaken();
YamlMBB.IsLandingPad = MBB.isLandingPad();
for (const auto *MBB : MBB.successors()) {
for (const auto *SuccMBB : MBB.successors()) {
std::string Str;
raw_string_ostream StrOS(Str);
MIPrinter(M, StrOS, RegisterMaskIds).printMBBReference(*MBB);
MIPrinter(M, StrOS, RegisterMaskIds).printMBBReference(*SuccMBB);
YamlMBB.Successors.push_back(StrOS.str());
}