summaryrefslogtreecommitdiffstats
path: root/source/compiler-core/slang-artifact-handler-impl.cpp
diff options
context:
space:
mode:
authorEllie Hermaszewska <ellieh@nvidia.com>2023-04-08 01:11:27 +0800
committerGitHub <noreply@github.com>2023-04-07 10:11:27 -0700
commit0468cd0d1a8a1cff1d838a741b050ef11f6d7461 (patch)
treee2e9e5731a20f46d524562c932a2371b191fd4e6 /source/compiler-core/slang-artifact-handler-impl.cpp
parent7bbe7b4780345181cb586b03504ff63f9b8d5c4c (diff)
Add SLANG_IID_PPV_ARGS (#2784)
* Add SLANG_IID_PPV_ARGS To mirror IID_PPV_ARGS from the COM Coding Practices: https://learn.microsoft.com/en-us/windows/win32/LearnWin32/com-coding-practices#the-iid_ppv_args-macro * Make getTypeGuid constexpr --------- Co-authored-by: Yong He <yonghe@outlook.com>
Diffstat (limited to 'source/compiler-core/slang-artifact-handler-impl.cpp')
-rw-r--r--source/compiler-core/slang-artifact-handler-impl.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/compiler-core/slang-artifact-handler-impl.cpp b/source/compiler-core/slang-artifact-handler-impl.cpp
index 9bf4313a9..84b786784 100644
--- a/source/compiler-core/slang-artifact-handler-impl.cpp
+++ b/source/compiler-core/slang-artifact-handler-impl.cpp
@@ -68,7 +68,7 @@ SlangResult DefaultArtifactHandler::_addRepresentation(IArtifact* artifact, Arti
// See if it implements ICastable
{
ComPtr<ICastable> castable;
- if (SLANG_SUCCEEDED(rep->queryInterface(ICastable::getTypeGuid(), (void**)castable.writeRef())) && castable)
+ if (SLANG_SUCCEEDED(rep->queryInterface(SLANG_IID_PPV_ARGS(castable.writeRef()))) && castable)
{
return _addRepresentation(artifact, keep, castable, outCastable);
}