diff --git a/include/vast/Dialect/HighLevel/HighLevelVar.td b/include/vast/Dialect/HighLevel/HighLevelVar.td index 2a710b4fed..e680ba1530 100644 --- a/include/vast/Dialect/HighLevel/HighLevelVar.td +++ b/include/vast/Dialect/HighLevel/HighLevelVar.td @@ -172,8 +172,7 @@ def HighLevel_VarDeclOp : HighLevel_Op< "var", [VastSymbol] > "Type":$type, "llvm::StringRef":$name, CArg< "BuilderCallback", "std::nullopt" >:$initBuilder, - CArg< "BuilderCallback", "std::nullopt" >:$allocaBuilder, - CArg< "llvm::ArrayRef< mlir::NamedAttribute >", "{}" >:$decl_attrs + CArg< "BuilderCallback", "std::nullopt" >:$allocaBuilder )> ]; diff --git a/lib/vast/Dialect/HighLevel/HighLevelOps.cpp b/lib/vast/Dialect/HighLevel/HighLevelOps.cpp index 9c6b4e1852..ae6274fcab 100644 --- a/lib/vast/Dialect/HighLevel/HighLevelOps.cpp +++ b/lib/vast/Dialect/HighLevel/HighLevelOps.cpp @@ -199,7 +199,7 @@ namespace vast::hl st.addTypes(rty); } - void VarDeclOp::build(Builder &bld, State &st, Type type, llvm::StringRef name, BuilderCallback init, BuilderCallback alloc, llvm::ArrayRef< mlir::NamedAttribute > attrs) { + void VarDeclOp::build(Builder &bld, State &st, Type type, llvm::StringRef name, BuilderCallback init, BuilderCallback alloc) { st.addAttribute("name", bld.getStringAttr(name)); InsertionGuard guard(bld); @@ -207,7 +207,6 @@ namespace vast::hl build_region(bld, st, alloc); st.addTypes(type); - st.addAttributes(attrs); } void EnumDeclOp::build(Builder &bld, State &st, llvm::StringRef name, Type type, BuilderCallback constants) {