Skip to content

Commit

Permalink
hl: Remove symbol reference from CountedByAttr.
Browse files Browse the repository at this point in the history
  • Loading branch information
xlauko committed Sep 30, 2024
1 parent f9b9987 commit 0c89ec9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion include/vast/Dialect/HighLevel/HighLevelAttributes.td
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ def HighLevel_FormatAttr : HighLevel_NameAttr< "Format", "format" >;
def HighLevel_SectionAttr : HighLevel_NameAttr< "Section", "section" >;
def HighLevel_AliasAttr : HighLevel_NameAttr< "Alias", "alias" >;
def HighLevel_ErrorAttr : HighLevel_NameAttr< "Error", "error" >;
def HighLevel_CountedByAttr : HighLevel_FlatSymbolReferringAttr< "CountedBy", "counted_by" >;
def HighLevel_CountedByAttr : HighLevel_Attr< "CountedBy", "counted_by" >;
def HighLevel_CleanupAttr : HighLevel_SymbolReferringAttr< "Cleanup", "cleanup" >;
// TODO(#595): Make aligned attribute keep the alignment value/expr
def HighLevel_AlignedAttr : HighLevel_Attr< "Aligned", "aligned" >;
Expand Down
2 changes: 1 addition & 1 deletion lib/vast/CodeGen/DefaultAttrVisitor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ namespace vast::cg
}

mlir_attr default_attr_visitor::VisitCountedByAttr(const clang::CountedByAttr *attr) {
return make< hl::CountedByAttr >(attr->getCountedByField()->getName());
return make< hl::CountedByAttr >();
}

mlir_attr default_attr_visitor::VisitCleanupAttr(const clang::CleanupAttr *attr) {
Expand Down

0 comments on commit 0c89ec9

Please sign in to comment.