Skip to content

Commit 8ee2f6f

Browse files
committed
fix: remove unnecessary exception logic
1 parent e35a16d commit 8ee2f6f

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

mlir/tools/mlir-tblgen/AttrOrTypeFormatGen.cpp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -154,11 +154,6 @@ static bool shouldPrintQualified(ParameterElement *param) {
154154
if (parameter.getPrinter())
155155
return false;
156156

157-
if (const llvm::Init *init = parameter.getDef())
158-
if (const auto *defInit = dyn_cast<llvm::DefInit>(init))
159-
if (defInit->getDef()->isSubClassOf("EnumAttrInfo"))
160-
return false;
161-
162157
if (cppType.contains("mlir::Attribute") || cppType.contains("mlir::Type"))
163158
return true;
164159

0 commit comments

Comments
 (0)