[Mlir-commits] [mlir] 9d10636 - [NFC] Set a variable in the mlir data formatter (#65554)
llvmlistbot at llvm.org
llvmlistbot at llvm.org
Wed Sep 6 17:13:43 PDT 2023
Author: Walter Erquinigo
Date: 2023-09-06T20:13:39-04:00
New Revision: 9d1063642cf742a6a330c4af7bc9ecd513abfcdd
URL: https://github.com/llvm/llvm-project/commit/9d1063642cf742a6a330c4af7bc9ecd513abfcdd
DIFF: https://github.com/llvm/llvm-project/commit/9d1063642cf742a6a330c4af7bc9ecd513abfcdd.diff
LOG: [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.
Added:
Modified:
mlir/utils/lldb-scripts/mlirDataFormatters.py
Removed:
################################################################################
diff --git a/mlir/utils/lldb-scripts/mlirDataFormatters.py b/mlir/utils/lldb-scripts/mlirDataFormatters.py
index 41f6227fe9de77..3282b4a32d503c 100644
--- a/mlir/utils/lldb-scripts/mlirDataFormatters.py
+++ b/mlir/utils/lldb-scripts/mlirDataFormatters.py
@@ -196,6 +196,7 @@ def __init__(self, valobj: lldb.SBValue, internal_dict):
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
More information about the Mlir-commits
mailing list