Skip to content

Commit

Permalink
[flang][NFC] Fix typo getFuncElementAttrName -> getFuncElementalAttrN…
Browse files Browse the repository at this point in the history
…ame (llvm#95998)

Fix type in the getter for the attribute name
  • Loading branch information
clementval committed Jun 18, 2024
1 parent 0f323dc commit 625fc4b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion flang/include/flang/Optimizer/Dialect/FIROpsSupport.h
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ static constexpr llvm::StringRef getFuncPureAttrName() {
return "fir.func_pure";
}

static constexpr llvm::StringRef getFuncElementAttrName() {
static constexpr llvm::StringRef getFuncElementalAttrName() {
return "fir.func_elemental";
}

Expand Down
2 changes: 1 addition & 1 deletion flang/lib/Lower/CallInterface.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -615,7 +615,7 @@ static void addSymbolAttribute(mlir::func::FuncOp func,
func->setAttr(fir::getFuncPureAttrName(),
mlir::UnitAttr::get(&mlirContext));
if (IsElementalProcedure(sym))
func->setAttr(fir::getFuncElementAttrName(),
func->setAttr(fir::getFuncElementalAttrName(),
mlir::UnitAttr::get(&mlirContext));
if (sym.attrs().test(Fortran::semantics::Attr::RECURSIVE))
func->setAttr(fir::getFuncRecursiveAttrName(),
Expand Down

0 comments on commit 625fc4b

Please sign in to comment.