Skip to content

Commit e3a880d

Browse files
authored
return single op (#71)
1 parent 80e962a commit e3a880d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mlir/extras/util.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ def find(op):
118118
find(o)
119119

120120
find(op)
121-
if single:
121+
if len(matching) == 1:
122122
matching = matching[0]
123123
return matching
124124

0 commit comments

Comments
 (0)