Skip to content

Commit 7c2a3be

Browse files
committed
fix example
1 parent 7fa026c commit 7c2a3be

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

flang/examples/FlangOmpReport/FlangOmpReportVisitor.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,10 @@ std::string OpenMPCounterVisitor::getName(const OpenMPDeclarativeConstruct &c) {
112112
const CharBlock &source{o.source};
113113
return normalize_construct_name(source.ToString());
114114
},
115+
[&](const OmpMetadirectiveDirective &o) -> std::string {
116+
const CharBlock &source{o.source};
117+
return normalize_construct_name(source.ToString());
118+
},
115119
[&](const auto &o) -> std::string {
116120
const CharBlock &source{std::get<Verbatim>(o.t).source};
117121
return normalize_construct_name(source.ToString());

0 commit comments

Comments
 (0)