Skip to content

Commit 368ff7e

Browse files
Fix broken example
1 parent 11ddecc commit 368ff7e

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
@@ -143,6 +143,10 @@ std::string OpenMPCounterVisitor::getName(const OpenMPConstruct &c) {
143143
},
144144
c.u);
145145
},
146+
[&](const OpenMPErrorConstruct &c) -> std::string {
147+
const CharBlock &source{std::get<0>(c.t).source};
148+
return normalize_construct_name(source.ToString());
149+
},
146150
[&](const OpenMPSectionConstruct &c) -> std::string {
147151
return "section";
148152
},

0 commit comments

Comments
 (0)