forked from OSchip/llvm-project
[BOLT][NFCI] Remove redundant code
createBasicBlock() will create a label for addBasicBlock(). Reviewed By: rafauler Differential Revision: https://reviews.llvm.org/D127928
This commit is contained in:
parent
264c09b732
commit
401a425d20
|
@ -1569,10 +1569,6 @@ public:
|
|||
assert((CurrentState == State::CFG || !getBasicBlockAtOffset(Offset)) &&
|
||||
"basic block already exists in pre-CFG state");
|
||||
|
||||
if (!Label) {
|
||||
std::unique_lock<std::shared_timed_mutex> Lock(BC.CtxMutex);
|
||||
Label = BC.Ctx->createNamedTempSymbol("BB");
|
||||
}
|
||||
std::unique_ptr<BinaryBasicBlock> BBPtr =
|
||||
createBasicBlock(Offset, Label, DeriveAlignment);
|
||||
BasicBlocks.emplace_back(BBPtr.release());
|
||||
|
|
Loading…
Reference in New Issue