From 9d1063642cf742a6a330c4af7bc9ecd513abfcdd Mon Sep 17 00:00:00 2001 From: Walter Erquinigo Date: Wed, 6 Sep 2023 20:13:39 -0400 Subject: [PATCH] [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. --- mlir/utils/lldb-scripts/mlirDataFormatters.py | 1 + 1 file changed, 1 insertion(+) diff --git a/mlir/utils/lldb-scripts/mlirDataFormatters.py b/mlir/utils/lldb-scripts/mlirDataFormatters.py index 41f6227fe9de..3282b4a32d50 100644 --- a/mlir/utils/lldb-scripts/mlirDataFormatters.py +++ b/mlir/utils/lldb-scripts/mlirDataFormatters.py @@ -196,6 +196,7 @@ class AttrTypeSynthProvider: valobj, self.abstractVal, internal_dict ) if not self.type: + self.impl_type = None return # Grab the ImplTy from the resolved type. This is the 3rd template