Skip to content

Commit

Permalink
cg: Add missing attribute visits.
Browse files Browse the repository at this point in the history
  • Loading branch information
xlauko authored and Jezurko committed Nov 4, 2024
1 parent 4bae47d commit 57aca21
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion lib/vast/CodeGen/DefaultAttrVisitor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ namespace vast::cg

mlir_attr default_attr_visitor::VisitOverloadableAttr(const clang::OverloadableAttr *attr) {
return make< hl::OverloadableAttr >();
}
}

mlir_attr default_attr_visitor::VisitNonNullAttr(const clang::NonNullAttr *) {
return make< hl::NonNullAttr >();
Expand Down Expand Up @@ -160,6 +160,14 @@ namespace vast::cg
return make< hl::TransparentUnionAttr >();
}

mlir_attr default_attr_visitor::VisitUnavailableAttr(const clang::UnavailableAttr *attr) {
return make< hl::UnavailableAttr >(attr->getMessage());
}

mlir_attr default_attr_visitor::VisitDiagnoseIfAttr(const clang::DiagnoseIfAttr *attr) {
return make< hl::DiagnoseIfAttr >();
}

mlir_attr default_attr_visitor::VisitReturnsTwiceAttr(const clang::ReturnsTwiceAttr *attr) {
return make< hl::ReturnsTwiceAttr >();
}
Expand Down

0 comments on commit 57aca21

Please sign in to comment.