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 62d2cc8 commit 4b4cd64Copy full SHA for 4b4cd64
llvm/lib/ExecutionEngine/Orc/DebugObjectManagerPlugin.cpp
@@ -475,8 +475,9 @@ Error DebugObjectManagerPlugin::notifyEmitted(
475
FinalizePromise.set_value(MR.withResourceKeyDo([&](ResourceKey K) {
476
assert(PendingObjs.count(&MR) && "We still hold PendingObjsLock");
477
std::lock_guard<std::mutex> Lock(RegisteredObjsLock);
478
- RegisteredObjs[K].push_back(std::move(PendingObjs[&MR]));
479
- PendingObjs.erase(&MR);
+ auto It = PendingObjs.find(&MR);
+ RegisteredObjs[K].push_back(std::move(It->second));
480
+ PendingObjs.erase(It);
481
}));
482
});
483
0 commit comments