Sirraide wrote: > I can not find corresponding type to save enum values into specific container (expected `diag::FunModes`). Ah, that’s because it emits an anonymous enum inside a namespace; just use `unsigned` I’d say. https://github.com/llvm/llvm-project/pull/127546