diff --git a/bolt/include/bolt/Core/BinaryFunction.h b/bolt/include/bolt/Core/BinaryFunction.h --- a/bolt/include/bolt/Core/BinaryFunction.h +++ b/bolt/include/bolt/Core/BinaryFunction.h @@ -1569,10 +1569,6 @@ assert((CurrentState == State::CFG || !getBasicBlockAtOffset(Offset)) && "basic block already exists in pre-CFG state"); - if (!Label) { - std::unique_lock Lock(BC.CtxMutex); - Label = BC.Ctx->createNamedTempSymbol("BB"); - } std::unique_ptr BBPtr = createBasicBlock(Offset, Label, DeriveAlignment); BasicBlocks.emplace_back(BBPtr.release());