We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0b5aea7 commit 194fd83Copy full SHA for 194fd83
mlir/lib/Dialect/EmitC/Transforms/WrapFuncInClass.cpp
@@ -62,11 +62,8 @@ class WrapFuncInClass : public OpRewritePattern<emitc::FuncOp> {
62
Attribute argAttr = nullptr;
63
64
fieldName = rewriter.getStringAttr("fieldName" + std::to_string(idx));
65
- if (argAttrs && idx < argAttrs->size()) {
66
- if (DictionaryAttr dictAttr =
67
- dyn_cast<mlir::DictionaryAttr>((*argAttrs)[idx]))
68
- argAttr = (*argAttrs)[idx];
69
- }
+ if (argAttrs && idx < argAttrs->size())
+ argAttr = (*argAttrs)[idx];
70
71
TypeAttr typeAttr = TypeAttr::get(val.getType());
72
fields.push_back({fieldName, typeAttr});
0 commit comments