make genericDesc crash on invalid argument

This commit is contained in:
dzaima 2025-05-26 00:03:56 +03:00
parent 8cc1e08f46
commit 641039520d

View File

@ -384,7 +384,7 @@ char* genericDesc(B x) {
if (isMd1(x)) return "1-modifier"; if (isMd1(x)) return "1-modifier";
if (isMd2(x)) return "2-modifier"; if (isMd2(x)) return "2-modifier";
if (isNsp(x)) return "namespace"; if (isNsp(x)) return "namespace";
return "object of unknown type"; fatal("genericDesc was passed an object of unhandled type");
} }
NOINLINE NORETURN void expI_B(B what) { NOINLINE NORETURN void expI_B(B what) {