diff options
| author | Ellie Hermaszewska <ellieh@nvidia.com> | 2023-08-08 00:08:23 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-08-08 00:08:23 +0800 |
| commit | 550396fde5c18ea19761bcd5d4148dc590aac3e1 (patch) | |
| tree | 12c7ba837a0f40f0a9bb76e1cc8a40c80796f61e /source | |
| parent | 0f57c46adb0b697af80208edbc99403553766be9 (diff) | |
Fail on an unhandled spv operand (#3052)
Co-authored-by: Yong He <yonghe@outlook.com>
Diffstat (limited to 'source')
| -rw-r--r-- | source/slang/slang-emit-spirv.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/slang/slang-emit-spirv.cpp b/source/slang/slang-emit-spirv.cpp index b17ccf483..7352cd859 100644 --- a/source/slang/slang-emit-spirv.cpp +++ b/source/slang/slang-emit-spirv.cpp @@ -2344,7 +2344,7 @@ struct SPIRVEmitContext builder.getType(kIROp_UIntType), builder.getIntValue(builder.getIntType(), 2)); break; default: - break; + SLANG_UNEXPECTED("unhandled case in emitSpvSnippetASMTypeOperand"); } emitOperand(irType); } |
