Skip to content

Commit

Permalink
hl: Remove obsolete argument from VarDecl builder.
Browse files Browse the repository at this point in the history
  • Loading branch information
Jezurko committed Oct 5, 2023
1 parent 4f1bc0a commit faa3038
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions include/vast/Dialect/HighLevel/HighLevelVar.td
Original file line number Diff line number Diff line change
Expand Up @@ -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
)>
];

Expand Down
3 changes: 1 addition & 2 deletions lib/vast/Dialect/HighLevel/HighLevelOps.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -199,15 +199,14 @@ 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);

build_region(bld, st, init);
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) {
Expand Down

0 comments on commit faa3038

Please sign in to comment.