Skip to content
Commit eb893b0f authored by Lang Hames's avatar Lang Hames
Browse files

[Orc] In the CompileOnDemand layer, wrap module ownership in order to preserve

the module pointer type passed in by the user.

The previous ownership scheme, where the user pointer was always moved into a
std::shared_ptr, breaks if the user passes in a raw pointer.

Discovered while working on the Orc C API, which should be landing shortly.
I expect to include a test-case with that.

llvm-svn: 251273
parent 7bb30968
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment