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 bb1a8bb commit 67c5998Copy full SHA for 67c5998
flang/lib/Semantics/resolve-directives.cpp
@@ -1823,6 +1823,7 @@ bool OmpAttributeVisitor::Pre(const parser::OpenMPCriticalConstruct &x) {
1823
const auto &beginCriticalDir{std::get<parser::OmpCriticalDirective>(x.t)};
1824
const auto &endCriticalDir{std::get<parser::OmpEndCriticalDirective>(x.t)};
1825
PushContext(beginCriticalDir.source, llvm::omp::Directive::OMPD_critical);
1826
+ GetContext().withinConstruct = true;
1827
if (const auto &criticalName{
1828
std::get<std::optional<parser::Name>>(beginCriticalDir.t)}) {
1829
ResolveOmpName(*criticalName, Symbol::Flag::OmpCriticalLock);
0 commit comments