summaryrefslogtreecommitdiffstats
path: root/source
diff options
context:
space:
mode:
authorEllie Hermaszewska <ellieh@nvidia.com>2023-08-08 00:08:23 +0800
committerGitHub <noreply@github.com>2023-08-08 00:08:23 +0800
commit550396fde5c18ea19761bcd5d4148dc590aac3e1 (patch)
tree12c7ba837a0f40f0a9bb76e1cc8a40c80796f61e /source
parent0f57c46adb0b697af80208edbc99403553766be9 (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.cpp2
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);
}