Skip to content

Commit 0aae9d5

Browse files
committed
section
1 parent c056e74 commit 0aae9d5

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

flang/examples/FlangOmpReport/FlangOmpReportVisitor.cpp

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,8 +119,12 @@ std::string OpenMPCounterVisitor::getName(const OpenMPDeclarativeConstruct &c) {
119119
c.u);
120120
}
121121
std::string OpenMPCounterVisitor::getName(const OpenMPConstruct &c) {
122-
return normalize_construct_name(
123-
omp::GetOmpDirectiveName(c).source.ToString());
122+
if (std::holds_alternative<OpenMPSectionConstruct>(c.u)) {
123+
return "section";
124+
} else {
125+
return normalize_construct_name(
126+
omp::GetOmpDirectiveName(c).source.ToString());
127+
}
124128
}
125129

126130
bool OpenMPCounterVisitor::Pre(const OpenMPDeclarativeConstruct &c) {

0 commit comments

Comments
 (0)