projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
89552f3
)
[ORC] Assert that ExecutionSession is still open when JITDylibs are created.
author
Lang Hames
<lhames@gmail.com>
Sun, 16 Jul 2023 23:37:09 +0000
(16:37 -0700)
committer
Lang Hames
<lhames@gmail.com>
Sun, 16 Jul 2023 23:37:09 +0000
(16:37 -0700)
llvm/lib/ExecutionEngine/Orc/Core.cpp
patch
|
blob
|
history
diff --git
a/llvm/lib/ExecutionEngine/Orc/Core.cpp
b/llvm/lib/ExecutionEngine/Orc/Core.cpp
index 1926d60ac015fe1e78f9bb61b3e24e57b73ee2a5..2d9eed1e51e976e188da665dc09c010555509945 100644
(file)
--- a/
llvm/lib/ExecutionEngine/Orc/Core.cpp
+++ b/
llvm/lib/ExecutionEngine/Orc/Core.cpp
@@
-1960,6
+1960,7
@@
JITDylib *ExecutionSession::getJITDylibByName(StringRef Name) {
JITDylib &ExecutionSession::createBareJITDylib(std::string Name) {
assert(!getJITDylibByName(Name) && "JITDylib with that name already exists");
return runSessionLocked([&, this]() -> JITDylib & {
+ assert(SessionOpen && "Cannot create JITDylib after session is closed");
JDs.push_back(new JITDylib(*this, std::move(Name)));
return *JDs.back();
});