Skip to content

Commit a7d5ca3

Browse files
committed
refactor: replace std::function with llvm::function_ref
1 parent 5c0753d commit a7d5ca3

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

mlir/lib/Bindings/Python/IRCore.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2730,8 +2730,7 @@ class PyOpAttributeMap {
27302730
operation->get(), toMlirStringRef(name)));
27312731
}
27322732

2733-
void
2734-
forEachAttr(const std::function<void(MlirStringRef, MlirAttribute)> &fn) {
2733+
void forEachAttr(llvm::function_ref<void(MlirStringRef, MlirAttribute)> fn) {
27352734
intptr_t n = mlirOperationGetNumAttributes(operation->get());
27362735
for (intptr_t i = 0; i < n; ++i) {
27372736
MlirNamedAttribute na = mlirOperationGetAttribute(operation->get(), i);

0 commit comments

Comments
 (0)