summaryrefslogtreecommitdiff
path: root/flang/examples/FlangOmpReport/FlangOmpReportVisitor.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'flang/examples/FlangOmpReport/FlangOmpReportVisitor.cpp')
-rw-r--r--flang/examples/FlangOmpReport/FlangOmpReportVisitor.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/flang/examples/FlangOmpReport/FlangOmpReportVisitor.cpp b/flang/examples/FlangOmpReport/FlangOmpReportVisitor.cpp
index d78f898d499e..7382e99de1ab 100644
--- a/flang/examples/FlangOmpReport/FlangOmpReportVisitor.cpp
+++ b/flang/examples/FlangOmpReport/FlangOmpReportVisitor.cpp
@@ -128,6 +128,10 @@ std::string OpenMPCounterVisitor::getName(const OpenMPConstruct &c) {
const CharBlock &source{std::get<0>(c.t).source};
return normalize_construct_name(source.ToString());
},
+ [&](const OpenMPAllocatorsConstruct &c) -> std::string {
+ const CharBlock &source{std::get<0>(c.t).source};
+ return normalize_construct_name(source.ToString());
+ },
[&](const OpenMPAtomicConstruct &c) -> std::string {
return std::visit(
[&](const auto &c) {