[Mlir-commits] [mlir] eeef40a - Apply clang-tidy fixes for performance-unnecessary-value-param in LLVMDialect.cpp (NFC)
Mehdi Amini
llvmlistbot at llvm.org
Tue Apr 12 00:47:34 PDT 2022
Author: Mehdi Amini
Date: 2022-04-12T07:47:04Z
New Revision: eeef40a6cd5eb3ca2bbe2225376dab170b8eb4a4
URL: https://github.com/llvm/llvm-project/commit/eeef40a6cd5eb3ca2bbe2225376dab170b8eb4a4
DIFF: https://github.com/llvm/llvm-project/commit/eeef40a6cd5eb3ca2bbe2225376dab170b8eb4a4.diff
LOG: Apply clang-tidy fixes for performance-unnecessary-value-param in LLVMDialect.cpp (NFC)
Added:
Modified:
mlir/lib/Dialect/LLVMIR/IR/LLVMDialect.cpp
Removed:
################################################################################
diff --git a/mlir/lib/Dialect/LLVMIR/IR/LLVMDialect.cpp b/mlir/lib/Dialect/LLVMIR/IR/LLVMDialect.cpp
index e149667659a97..bf8d487ccb498 100644
--- a/mlir/lib/Dialect/LLVMIR/IR/LLVMDialect.cpp
+++ b/mlir/lib/Dialect/LLVMIR/IR/LLVMDialect.cpp
@@ -2644,7 +2644,7 @@ LogicalResult LLVMDialect::verifyStructAttr(Operation *op, Attribute attr,
static LogicalResult verifyFuncOpInterfaceStructAttr(
Operation *op, Attribute attr,
- std::function<Type(FunctionOpInterface)> getAnnotatedType) {
+ const std::function<Type(FunctionOpInterface)> &getAnnotatedType) {
if (auto funcOp = dyn_cast<FunctionOpInterface>(op))
return LLVMDialect::verifyStructAttr(op, attr, getAnnotatedType(funcOp));
return op->emitError() << "expected '"
More information about the Mlir-commits
mailing list