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:
2aae49d
)
[ORC] Fix a think-o: ExecutionSession should create a SymbolStringPool if none
author
Lang Hames
<lhames@gmail.com>
Mon, 2 Apr 2018 21:34:48 +0000
(21:34 +0000)
committer
Lang Hames
<lhames@gmail.com>
Mon, 2 Apr 2018 21:34:48 +0000
(21:34 +0000)
is passed in.
llvm-svn: 329018
llvm/include/llvm/ExecutionEngine/Orc/Core.h
patch
|
blob
|
history
diff --git
a/llvm/include/llvm/ExecutionEngine/Orc/Core.h
b/llvm/include/llvm/ExecutionEngine/Orc/Core.h
index
4f530d4
..
475ef9c
100644
(file)
--- a/
llvm/include/llvm/ExecutionEngine/Orc/Core.h
+++ b/
llvm/include/llvm/ExecutionEngine/Orc/Core.h
@@
-328,7
+328,7
@@
public:
///
/// SymbolStringPools may be shared between ExecutionSessions.
ExecutionSession(std::shared_ptr<SymbolStringPool> SSP = nullptr)
- : SSP(
std::move(SSP
)) {}
+ : SSP(
SSP ? std::move(SSP) : std::make_shared<SymbolStringPool>(
)) {}
/// @brief Returns the SymbolStringPool for this ExecutionSession.
SymbolStringPool &getSymbolStringPool() const { return *SSP; }