Fix compilation failure introduced in r241093.
[oota-llvm.git] / lib / CodeGen / MIRPrinter.cpp
index 6b6675579ccc4ae9843740a1d3fbdbf4cf91a950..76cbe2994c95b1f61eb6578ae329c186eac90151 100644 (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());
   }