[mlir][Diagnostics] Don't print note source line if it is the same as the previous...
authorRiver Riddle <riddleriver@gmail.com>
Mon, 30 Mar 2020 04:38:11 +0000 (21:38 -0700)
committerRiver Riddle <riddleriver@gmail.com>
Mon, 30 Mar 2020 04:43:44 +0000 (21:43 -0700)
commit3d44f48edc271dc2e1f68d5281f7f4bd11949340
tree3667d55d4bd02c0551a3d6255302ac4ff8bd1a28
parent05f0e598ab265a80fedb23225cde4176f11774ac
[mlir][Diagnostics] Don't print note source line if it is the same as the previous diagnostic

Summary: This revision updates the SourceMgrDiagnosticHandler to not print the source location of a note if it is the same location as the previously printed diagnostic. This helps avoid redundancy, and potential confusion, when looking at the diagnostic output.

Differential Revision: https://reviews.llvm.org/D76787
mlir/include/mlir/IR/Diagnostics.h
mlir/lib/IR/Diagnostics.cpp
mlir/test/IR/diagnostic-handler.mlir