Page MenuHomePhabricator

D63377.diff
No OneTemporary

File Metadata

Created
Sat, Dec 14, 2:08 AM

D63377.diff

Index: llvm/lib/ExecutionEngine/Orc/Core.cpp
===================================================================
--- llvm/lib/ExecutionEngine/Orc/Core.cpp
+++ llvm/lib/ExecutionEngine/Orc/Core.cpp
@@ -1607,8 +1607,9 @@
JITDylib &ExecutionSession::createJITDylib(std::string Name,
bool AddToMainDylibSearchOrder) {
- assert(!getJITDylibByName(Name) && "JITDylib with that name already exists");
return runSessionLocked([&, this]() -> JITDylib & {
+ assert(!getJITDylibByName(Name) &&
+ "JITDylib with that name already exists");
JDs.push_back(
std::unique_ptr<JITDylib>(new JITDylib(*this, std::move(Name))));
if (AddToMainDylibSearchOrder)

Event Timeline