Skip to content

Commit 9d10636

Browse files
[NFC] Set a variable in the mlir data formatter (#65554)
The formatter fails when num_children is invoked and self.impl_type is not set.
1 parent 8f675d1 commit 9d10636

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

mlir/utils/lldb-scripts/mlirDataFormatters.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,7 @@ def __init__(self, valobj: lldb.SBValue, internal_dict):
196196
valobj, self.abstractVal, internal_dict
197197
)
198198
if not self.type:
199+
self.impl_type = None
199200
return
200201

201202
# Grab the ImplTy from the resolved type. This is the 3rd template

0 commit comments

Comments
 (0)