I hit an assert about an scf.for having an empty region when attempting to debug via -convert-scf-to-std -debug. During conversion, scf.for ops can exist without a body and this makes it resilient to that.
Please advise if there is a way we test this kind of thing (or another preferred way to do it).
I'm not really pro doing this kind of thing (i.e. adding a bunch of ifs and checks in the pretty printers), IMO debug printing should generally go through the generic form.