forked from OSchip/llvm-project
[ORC] Fix a think-o: ExecutionSession should create a SymbolStringPool if none
is passed in. llvm-svn: 329018
This commit is contained in:
parent
2aae49d3b2
commit
e8f12eb952
|
@ -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; }
|
||||
|
|
Loading…
Reference in New Issue