mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-25 09:36:06 +00:00
Apply clang-tidy fixes for performance-unnecessary-value-param in LLVMDialect.cpp (NFC)
This commit is contained in:
parent
e188ad8bf0
commit
eeef40a6cd
@ -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 '"
|
||||
|
Loading…
x
Reference in New Issue
Block a user