summaryrefslogtreecommitdiffstats
path: root/source
diff options
context:
space:
mode:
Diffstat (limited to 'source')
-rw-r--r--source/slang/slang.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/source/slang/slang.cpp b/source/slang/slang.cpp
index e62d2c9ae..b6359146c 100644
--- a/source/slang/slang.cpp
+++ b/source/slang/slang.cpp
@@ -1066,8 +1066,9 @@ SLANG_NO_THROW SlangResult SLANG_MCALL Linkage::createTypeConformanceComponentTy
catch (...)
{}
sink.getBlobIfNeeded(outDiagnostics);
+ bool success = (result != nullptr);
*outConformanceComponentType = result.detach();
- return result ? SLANG_OK : SLANG_FAIL;
+ return success ? SLANG_OK : SLANG_FAIL;
}
SLANG_NO_THROW SlangResult SLANG_MCALL Linkage::createCompileRequest(