diff options
| author | Yong He <yonghe@outlook.com> | 2024-03-04 21:57:50 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-03-04 21:57:50 -0800 |
| commit | bb017e6aa8ddbfac6b9a78a66f4706964fbeaff4 (patch) | |
| tree | e902a0c319a326a035f815e6ac16a3d19fc860d3 /source/slang/slang-emit.cpp | |
| parent | 2297623aad4c249bccae3fe363ada31e308131ac (diff) | |
Extend `as` and `is` operator to work on generic types. (#3672)
Diffstat (limited to 'source/slang/slang-emit.cpp')
| -rw-r--r-- | source/slang/slang-emit.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source/slang/slang-emit.cpp b/source/slang/slang-emit.cpp index 763d96840..2217bc143 100644 --- a/source/slang/slang-emit.cpp +++ b/source/slang/slang-emit.cpp @@ -478,6 +478,8 @@ Result linkAndOptimizeIR( } lowerReinterpret(targetProgram, irModule, sink); + if (sink->getErrorCount() != 0) + return SLANG_FAIL; validateIRModuleIfEnabled(codeGenContext, irModule); |
