FedericoBruzzone wrote: > As suggested above, I would try to simplify the code further, as I think you shouldn't need a `std::variant` here. Okay, I think it might be easier to read now. What do you think? https://github.com/llvm/llvm-project/pull/181331