summaryrefslogtreecommitdiffstats
path: root/source/compiler-core/slang-artifact-handler-impl.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/compiler-core/slang-artifact-handler-impl.cpp')
-rw-r--r--source/compiler-core/slang-artifact-handler-impl.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/source/compiler-core/slang-artifact-handler-impl.cpp b/source/compiler-core/slang-artifact-handler-impl.cpp
index 5d2a74036..6fc96dc44 100644
--- a/source/compiler-core/slang-artifact-handler-impl.cpp
+++ b/source/compiler-core/slang-artifact-handler-impl.cpp
@@ -29,8 +29,9 @@ namespace Slang {
SlangResult DefaultArtifactHandler::queryInterface(SlangUUID const& uuid, void** outObject)
{
- if (auto ptr = getInterface(uuid))
+ if ([[maybe_unused]] auto ptr = getInterface(uuid))
{
+ SLANG_ASSERT(ptr == this);
addRef();
*outObject = static_cast<IArtifactHandler*>(this);
return SLANG_OK;