Skip to content

Commit 446380a

Browse files
committed
chore: make forEachAttr static after review feedback
1 parent a7d5ca3 commit 446380a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

mlir/lib/Bindings/Python/IRCore.cpp

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

2733-
void forEachAttr(llvm::function_ref<void(MlirStringRef, MlirAttribute)> fn) {
2733+
static void
2734+
forEachAttr(llvm::function_ref<void(MlirStringRef, MlirAttribute)> fn) {
27342735
intptr_t n = mlirOperationGetNumAttributes(operation->get());
27352736
for (intptr_t i = 0; i < n; ++i) {
27362737
MlirNamedAttribute na = mlirOperationGetAttribute(operation->get(), i);

0 commit comments

Comments
 (0)