summaryrefslogtreecommitdiffstats
path: root/source/slang/slang-emit.cpp
diff options
context:
space:
mode:
authorSai Praveen Bangaru <31557731+saipraveenb25@users.noreply.github.com>2023-10-05 12:52:49 -0400
committerGitHub <noreply@github.com>2023-10-05 09:52:49 -0700
commit441e13e13f30b96eb04c05725ad7fe1983c92f53 (patch)
treeaee5c31b62876ef8ad60a37b2a4767b6f1a299c6 /source/slang/slang-emit.cpp
parent65751ce222adb302e62b5b7b6312de65638abed5 (diff)
Various AD Fixes (#3263)
* Various fixes * Remove unused parameter * Update slang-ir-loop-unroll.cpp --------- Co-authored-by: Yong He <yonghe@outlook.com>
Diffstat (limited to 'source/slang/slang-emit.cpp')
-rw-r--r--source/slang/slang-emit.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/source/slang/slang-emit.cpp b/source/slang/slang-emit.cpp
index bbf6885a8..86136a010 100644
--- a/source/slang/slang-emit.cpp
+++ b/source/slang/slang-emit.cpp
@@ -459,6 +459,9 @@ Result linkAndOptimizeIR(
break;
}
+ if (sink->getErrorCount() != 0)
+ return SLANG_FAIL;
+
// If we have a target that is GPU like we use the string hashing mechanism
// but for that to work we need to inline such that calls (or returns) of strings
// boil down into getStringHash(stringLiteral)