summaryrefslogtreecommitdiff
path: root/source/slang/slang-compiler-tu.cpp
diff options
context:
space:
mode:
authorYong He <yonghe@outlook.com>2024-10-21 08:49:15 -0700
committerGitHub <noreply@github.com>2024-10-21 08:49:15 -0700
commit3e84726f45c66b477569be9e62da71956ab78e94 (patch)
tree8c69306133ee04b6acd14dd07d12a0ed47bf0079 /source/slang/slang-compiler-tu.cpp
parent20fa42e82dfa8398c9c818773fa40817883fb7ec (diff)
Fix spirv codegen for pointer to empty structs. (#5355)
Diffstat (limited to 'source/slang/slang-compiler-tu.cpp')
-rw-r--r--source/slang/slang-compiler-tu.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/source/slang/slang-compiler-tu.cpp b/source/slang/slang-compiler-tu.cpp
index 49595117d..5f88e871d 100644
--- a/source/slang/slang-compiler-tu.cpp
+++ b/source/slang/slang-compiler-tu.cpp
@@ -104,7 +104,7 @@ namespace Slang
applySettingsToDiagnosticSink(&sink, &sink, linkage->m_optionSet);
applySettingsToDiagnosticSink(&sink, &sink, m_optionSet);
- TargetRequest* targetReq = new TargetRequest(linkage, targetEnum);
+ RefPtr<TargetRequest> targetReq = new TargetRequest(linkage, targetEnum);
List<RefPtr<ComponentType>> allComponentTypes;
allComponentTypes.add(this); // Add Module as a component type
@@ -206,8 +206,8 @@ namespace Slang
}
}
- ISlangBlob* blob;
- outArtifact->loadBlob(ArtifactKeep::Yes, &blob);
+ ComPtr<ISlangBlob> blob;
+ outArtifact->loadBlob(ArtifactKeep::Yes, blob.writeRef());
// Add the precompiled blob to the module
builder.setInsertInto(module);