We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c056e74 commit 0aae9d5Copy full SHA for 0aae9d5
flang/examples/FlangOmpReport/FlangOmpReportVisitor.cpp
@@ -119,8 +119,12 @@ std::string OpenMPCounterVisitor::getName(const OpenMPDeclarativeConstruct &c) {
119
c.u);
120
}
121
std::string OpenMPCounterVisitor::getName(const OpenMPConstruct &c) {
122
- return normalize_construct_name(
123
- omp::GetOmpDirectiveName(c).source.ToString());
+ if (std::holds_alternative<OpenMPSectionConstruct>(c.u)) {
+ return "section";
124
+ } else {
125
+ return normalize_construct_name(
126
+ omp::GetOmpDirectiveName(c).source.ToString());
127
+ }
128
129
130
bool OpenMPCounterVisitor::Pre(const OpenMPDeclarativeConstruct &c) {
0 commit comments