Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 0 additions & 16 deletions flang/lib/Semantics/resolve-directives.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2446,22 +2446,6 @@ void OmpAttributeVisitor::PrivatizeAssociatedLoopIndexAndCheckLoopLevel(
}
}
CheckAssocLoopLevel(level, GetAssociatedClause());
} else if (const auto *loop{std::get_if<
common::Indirection<parser::OpenMPLoopConstruct>>(
innerMostNest)}) {
const parser::OmpDirectiveSpecification &beginSpec{
loop->value().BeginDir()};
const parser::OmpDirectiveName &beginName{beginSpec.DirName()};
if (beginName.v != llvm::omp::Directive::OMPD_unroll &&
beginName.v != llvm::omp::Directive::OMPD_tile) {
context_.Say(GetContext().directiveSource,
"Only UNROLL or TILE constructs are allowed between an OpenMP Loop Construct and a DO construct"_err_en_US,
parser::ToUpperCaseLetters(llvm::omp::getOpenMPDirectiveName(
GetContext().directive, version)
.str()));
} else {
PrivatizeAssociatedLoopIndexAndCheckLoopLevel(loop->value());
}
} else {
context_.Say(GetContext().directiveSource,
"A DO loop must follow the %s directive"_err_en_US,
Expand Down
Loading