Skip to content

Commit f533fa3

Browse files
committed
[mlir] Revert default case that was needed
This one isn't always complete.
1 parent 98a88c1 commit f533fa3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

mlir/tools/mlir-tblgen/SPIRVUtilsGen.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -932,6 +932,8 @@ static void emitDeserializationDispatch(const Operator &op, const Record *def,
932932
/// of the operation.
933933
static void finalizeDispatchDeserializationFn(StringRef opcode,
934934
raw_ostream &os) {
935+
os << " default:\n";
936+
os << " ;\n";
935937
os << " }\n";
936938
StringRef opcodeVar("opcodeString");
937939
os << formatv(" auto {0} = spirv::stringifyOpcode({1});\n", opcodeVar,

0 commit comments

Comments
 (0)