Make the AsmPrinter print "<<NULL TYPE>>" instead of crashing on null types
authorMehdi Amini <joker.eph@gmail.com>
Sun, 5 Apr 2020 03:01:21 +0000 (03:01 +0000)
committerMehdi Amini <joker.eph@gmail.com>
Sun, 5 Apr 2020 18:36:18 +0000 (18:36 +0000)
commit96eb38418bcc2e11f9b991629231451dc8c19555
tree2bdfef8fde949a5f6f9be75304a4fc2514df2d5a
parent26e68804346a16371e46b437bf5489ee8b6c100f
Make the AsmPrinter print "<<NULL TYPE>>" instead of crashing on null types

Even if this indicates in general a problem at call sites, the printer
is used for debugging and avoiding crashing is friendlier for example
when used in diagnostics or other printer.

Differential Revision: https://reviews.llvm.org/D77481
mlir/lib/IR/AsmPrinter.cpp