Use more references in MLIR Diagnostic handling (NFC)
authorMehdi Amini <joker.eph@gmail.com>
Tue, 18 Jan 2022 06:23:31 +0000 (06:23 +0000)
committerMehdi Amini <joker.eph@gmail.com>
Tue, 18 Jan 2022 06:45:04 +0000 (06:45 +0000)
commit7265688e0922a197a4be9095f6a727aa4b5cb2c1
tree818df9b74f5a750ce2d0d34e3c57671caefd1b7c
parentf16a4a034a279f52c33f41cafb7d9751ee8a01dd
Use more references in MLIR Diagnostic handling (NFC)

This saves some copies of non-trivial objects, flagged by Coverity.

Reviewed By: rriddle

Differential Revision: https://reviews.llvm.org/D117525
mlir/include/mlir/IR/Diagnostics.h
mlir/lib/IR/Diagnostics.cpp