[ORC] Fix a think-o: ExecutionSession should create a SymbolStringPool if none

is passed in.

llvm-svn: 329018
This commit is contained in:
Lang Hames 2018-04-02 21:34:48 +00:00
parent 2aae49d3b2
commit e8f12eb952
1 changed files with 1 additions and 1 deletions

View File

@ -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; }