Skip to content

Commit 4dd73f4

Browse files
clementvalAlexisPerry
authored andcommitted
[flang][NFC] Fix typo getFuncElementAttrName -> getFuncElementalAttrName (llvm#95998)
Fix type in the getter for the attribute name
1 parent 6c6c07c commit 4dd73f4

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

flang/include/flang/Optimizer/Dialect/FIROpsSupport.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ static constexpr llvm::StringRef getFuncPureAttrName() {
152152
return "fir.func_pure";
153153
}
154154

155-
static constexpr llvm::StringRef getFuncElementAttrName() {
155+
static constexpr llvm::StringRef getFuncElementalAttrName() {
156156
return "fir.func_elemental";
157157
}
158158

flang/lib/Lower/CallInterface.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -615,7 +615,7 @@ static void addSymbolAttribute(mlir::func::FuncOp func,
615615
func->setAttr(fir::getFuncPureAttrName(),
616616
mlir::UnitAttr::get(&mlirContext));
617617
if (IsElementalProcedure(sym))
618-
func->setAttr(fir::getFuncElementAttrName(),
618+
func->setAttr(fir::getFuncElementalAttrName(),
619619
mlir::UnitAttr::get(&mlirContext));
620620
if (sym.attrs().test(Fortran::semantics::Attr::RECURSIVE))
621621
func->setAttr(fir::getFuncRecursiveAttrName(),

0 commit comments

Comments
 (0)