[flang-commits] [flang] [flang][NFC] Fix typo getFuncElementAttrName -> getFuncElementalAttrName (PR #95998)
Valentin Clement バレンタイン クレメン via flang-commits
flang-commits at lists.llvm.org
Tue Jun 18 14:46:54 PDT 2024
https://github.com/clementval created https://github.com/llvm/llvm-project/pull/95998
Fix type in the getter for the attribute name
>From d084793c095216691704a39b9dbb969069b820f7 Mon Sep 17 00:00:00 2001
From: Valentin Clement <clementval at gmail.com>
Date: Tue, 18 Jun 2024 14:45:44 -0700
Subject: [PATCH] [flang][NFC] Fix typo getFuncElementAttrName ->
getFuncElementalAttrName
---
flang/include/flang/Optimizer/Dialect/FIROpsSupport.h | 2 +-
flang/lib/Lower/CallInterface.cpp | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/flang/include/flang/Optimizer/Dialect/FIROpsSupport.h b/flang/include/flang/Optimizer/Dialect/FIROpsSupport.h
index 116c1dfea51b4..50e18792a167a 100644
--- a/flang/include/flang/Optimizer/Dialect/FIROpsSupport.h
+++ b/flang/include/flang/Optimizer/Dialect/FIROpsSupport.h
@@ -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";
}
diff --git a/flang/lib/Lower/CallInterface.cpp b/flang/lib/Lower/CallInterface.cpp
index 75a86273250d1..30f985804d2ae 100644
--- a/flang/lib/Lower/CallInterface.cpp
+++ b/flang/lib/Lower/CallInterface.cpp
@@ -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(),
More information about the flang-commits
mailing list