[all-commits] [llvm/llvm-project] 3d44f4: [mlir][Diagnostics] Don't print note source line i...

River Riddle via All-commits all-commits at lists.llvm.org
Sun Mar 29 21:44:51 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 3d44f48edc271dc2e1f68d5281f7f4bd11949340
      https://github.com/llvm/llvm-project/commit/3d44f48edc271dc2e1f68d5281f7f4bd11949340
  Author: River Riddle <riddleriver at gmail.com>
  Date:   2020-03-29 (Sun, 29 Mar 2020)

  Changed paths:
    M mlir/include/mlir/IR/Diagnostics.h
    M mlir/lib/IR/Diagnostics.cpp
    M mlir/test/IR/diagnostic-handler.mlir

  Log Message:
  -----------
  [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




More information about the All-commits mailing list