summaryrefslogtreecommitdiff
path: root/source/slang/check.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/slang/check.cpp')
-rw-r--r--source/slang/check.cpp10
1 files changed, 9 insertions, 1 deletions
diff --git a/source/slang/check.cpp b/source/slang/check.cpp
index 00c6f6dd0..e07bdf156 100644
--- a/source/slang/check.cpp
+++ b/source/slang/check.cpp
@@ -311,7 +311,10 @@ namespace Slang
const char* libName = DefaultSharedLibraryLoader::getSharedLibraryNameFromType(type);
if (SLANG_FAILED(sharedLibraryLoader->loadSharedLibrary(libName, sharedLibraries[int(type)].writeRef())))
{
- sink->diagnose(SourceLoc(), Diagnostics::failedToLoadDynamicLibrary, libName);
+ if (sink)
+ {
+ sink->diagnose(SourceLoc(), Diagnostics::failedToLoadDynamicLibrary, libName);
+ }
return nullptr;
}
}
@@ -2072,6 +2075,11 @@ namespace Slang
// Has no args
SLANG_ASSERT(attr->args.Count() == 0);
}
+ else if (attr.As<EarlyDepthStencilAttribute>())
+ {
+ // Has no args
+ SLANG_ASSERT(attr->args.Count() == 0);
+ }
else
{
if(attr->args.Count() == 0)