Skip to content

Commit fe10b27

Browse files
tdanylukjoker-eph
andauthored
Update mlir/utils/generate-test-checks.py
Co-authored-by: Mehdi Amini <[email protected]>
1 parent d2f4c5c commit fe10b27

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

mlir/utils/generate-test-checks.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -148,9 +148,7 @@ def generate_name(self, source_attribute_name):
148148
# has been generated for the given attribute yet, None is returned.
149149
def get_name(self, source_attribute_name):
150150
return (
151-
self.map[source_attribute_name]
152-
if source_attribute_name in self.map
153-
else None
151+
self.map.get(source_attribute_name)
154152
)
155153

156154
# Return the number of SSA results in a line of type

0 commit comments

Comments
 (0)