Skip to content

Commit 95069c1

Browse files
authored
[flang][OpenMP] Remove unused DECLARE REDUCTION from openmp-utils.h, NFC (#161390)
DECLARE REDUCTION is now handled by the generic code, and the special handling no longer applies.
1 parent 042540a commit 95069c1

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

flang/include/flang/Parser/openmp-utils.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@ struct ConstructId {
3939
}
4040

4141
MAKE_CONSTR_ID(OpenMPDeclarativeAllocate, D::OMPD_allocate);
42-
MAKE_CONSTR_ID(OpenMPDeclareReductionConstruct, D::OMPD_declare_reduction);
4342
MAKE_CONSTR_ID(OpenMPExecutableAllocate, D::OMPD_allocate);
4443

4544
#undef MAKE_CONSTR_ID
@@ -92,7 +91,6 @@ struct DirectiveNameScope {
9291
if constexpr (std::is_base_of_v<OmpBlockConstruct, T>) {
9392
return std::get<OmpBeginDirective>(x.t).DirName();
9493
} else if constexpr (std::is_same_v<T, OpenMPDeclarativeAllocate> ||
95-
std::is_same_v<T, OpenMPDeclareReductionConstruct> ||
9694
std::is_same_v<T, OpenMPExecutableAllocate>) {
9795
return MakeName(std::get<Verbatim>(x.t).source, ConstructId<T>::id);
9896
} else {

0 commit comments

Comments
 (0)