Skip to content

Commit

Permalink
cg: Don't do unnecessary copy of section attribute name.
Browse files Browse the repository at this point in the history
  • Loading branch information
Jezurko authored and xlauko committed Oct 6, 2023
1 parent f0a011a commit be8b6d1
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions include/vast/CodeGen/CodeGenAttrVisitor.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,7 @@ namespace vast::cg {
}

mlir_attr VisitSectionAttr(const clang::SectionAttr *attr) {
std::string name(attr->getName());
return make< hl::SectionAttr >(name);
return make< hl::SectionAttr >(attr->getName());
}

mlir_attr VisitAnnotateAttr(const clang::AnnotateAttr *attr) {
Expand Down

0 comments on commit be8b6d1

Please sign in to comment.