diff options
Diffstat (limited to 'source/slang/slang.cpp')
| -rw-r--r-- | source/slang/slang.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source/slang/slang.cpp b/source/slang/slang.cpp index 83c52c660..985599022 100644 --- a/source/slang/slang.cpp +++ b/source/slang/slang.cpp @@ -4329,7 +4329,7 @@ void EndToEndCompileRequest::setDefaultModuleName(const char* defaultModuleName) frontEndReq->m_defaultModuleName = namePool->getName(defaultModuleName); } -SlangResult _addLibraryReference(EndToEndCompileRequest* req, Artifact* artifact) +SlangResult _addLibraryReference(EndToEndCompileRequest* req, IArtifact* artifact) { auto desc = artifact->getDesc(); @@ -4350,7 +4350,7 @@ SlangResult _addLibraryReference(EndToEndCompileRequest* req, Artifact* artifact // Add to the m_libModules auto linkage = req->getLinkage(); - linkage->m_libModules.add(artifact); + linkage->m_libModules.add(ComPtr<IArtifact>(artifact)); return SLANG_OK; } @@ -4366,7 +4366,7 @@ SlangResult EndToEndCompileRequest::addLibraryReference(const void* libData, siz // Create an artifact without any name (as one is not provided) RefPtr<Artifact> artifact = new Artifact(desc, String()); - artifact->add(Artifact::Entry::Style::Artifact, library); + artifact->addElement(desc, library); return _addLibraryReference(this, artifact); } |
