Skip to content

Commit 2708306

Browse files
Move function inline
1 parent df74037 commit 2708306

File tree

1 file changed

+3
-10
lines changed

1 file changed

+3
-10
lines changed

flang/lib/Semantics/resolve-names.cpp

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1656,7 +1656,6 @@ class OmpVisitor : public virtual DeclarationVisitor {
16561656
const parser::OmpClauseList &clauses);
16571657
void ProcessReductionSpecifier(const parser::OmpReductionSpecifier &spec,
16581658
const std::optional<parser::OmpClauseList> &clauses);
1659-
void CreateTempSymbol(const parser::CharBlock &name, const DeclTypeSpec &dts);
16601659
};
16611660

16621661
bool OmpVisitor::NeedsScope(const parser::OpenMPBlockConstruct &x) {
@@ -1749,14 +1748,6 @@ void OmpVisitor::ProcessMapperSpecifier(const parser::OmpMapperSpecifier &spec,
17491748
PopScope();
17501749
}
17511750

1752-
void OmpVisitor::CreateTempSymbol(
1753-
const parser::CharBlock &name, const DeclTypeSpec &dts) {
1754-
ObjectEntityDetails details{};
1755-
details.set_type(dts);
1756-
1757-
MakeSymbol(name, Attrs{}, std::move(details));
1758-
}
1759-
17601751
void OmpVisitor::ProcessReductionSpecifier(
17611752
const parser::OmpReductionSpecifier &spec,
17621753
const std::optional<parser::OmpClauseList> &clauses) {
@@ -1783,7 +1774,9 @@ void OmpVisitor::ProcessReductionSpecifier(
17831774
{"omp_in", 6}, {"omp_out", 7}, {"omp_priv", 8}};
17841775

17851776
for (auto &nm : ompVarNames) {
1786-
CreateTempSymbol(nm, *typeSpec);
1777+
ObjectEntityDetails details{};
1778+
details.set_type(*typeSpec);
1779+
MakeSymbol(nm, Attrs{}, std::move(details));
17871780
}
17881781
EndDeclTypeSpec();
17891782
Walk(std::get<std::optional<parser::OmpReductionCombiner>>(spec.t));

0 commit comments

Comments
 (0)