[mlir] Fix resource printing in the presence of multiple dialects
commit37ce660afadd4440e670b406dfb199cabc438a83
authorMogball <jeff@modular.com>
Thu, 10 Aug 2023 23:30:52 +0000 (10 16:30 -0700)
committerMogball <jeff@modular.com>
Thu, 10 Aug 2023 23:31:30 +0000 (10 16:31 -0700)
tree39c04cf82d6da43525c3bfc6bdc2c8452f85efbb
parente66affa17e325a9175bc2274c4c2b399e5ad8b92
[mlir] Fix resource printing in the presence of multiple dialects

The comma+newline could get skipped when more than one dialect has
resource providers but not all may have resources to print.
mlir/lib/IR/AsmPrinter.cpp