We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5cc499a commit 0ff902eCopy full SHA for 0ff902e
llvm/lib/CodeGen/MIRParser/MIParser.cpp
@@ -780,7 +780,7 @@ bool MIParser::parseBasicBlockDefinition(
780
"' is not defined in the function '" +
781
MF.getName() + "'");
782
}
783
- auto *MBB = MF.CreateMachineBasicBlock(BB);
+ auto *MBB = MF.CreateMachineBasicBlock(BB, BBID);
784
MF.insert(MF.end(), MBB);
785
bool WasInserted = MBBSlots.insert(std::make_pair(ID, MBB)).second;
786
if (!WasInserted)
@@ -799,9 +799,6 @@ bool MIParser::parseBasicBlockDefinition(
799
MBB->setSectionID(*SectionID);
800
MF.setBBSectionsType(BasicBlockSection::List);
801
802
- if (BBID.has_value()) {
803
- MBB->setBBID(BBID.value());
804
- }
805
MBB->setCallFrameSize(CallFrameSize);
806
return false;
807
0 commit comments