Print both type in diagnostic emitted on mismatch between def/use of SSA Values ...
authorMehdi Amini <aminim@google.com>
Tue, 25 Jun 2019 00:51:44 +0000 (17:51 -0700)
committerA. Unique TensorFlower <gardener@tensorflow.org>
Tue, 25 Jun 2019 16:05:02 +0000 (09:05 -0700)
commit14a10a818b2d069afe209a8f247aed8e4dbca014
tree2601adfd71bc75cdfde6839100db0614c4bbbefb
parentc32080a1b0f358f2c17f3b506b14ee28e8c3e397
Print both type in diagnostic emitted on mismatch between def/use of SSA Values (NFC)

The error would look like:

  path/filename.mlir:32:23: error: use of value '%28' expects different type than prior uses: ''i32'' vs ''!_tf.control''

PiperOrigin-RevId: 254874859
mlir/lib/Parser/Parser.cpp
mlir/test/IR/invalid.mlir