================
@@ -772,6 +772,19 @@ void OmpStructureChecker::Enter(const
parser::OmpMetadirectiveDirective &x) {
}
void OmpStructureChecker::Leave(const parser::OmpMetadirectiveDirective &) {
+ // Perform semantic checks on declarative variants.
+ if (!partStack_.empty() && partStack_.back() == PartKind::SpecificationPart)
{
+ OmpVariantMatchContext matchContext{context_};
+ for (const MetadirectiveLoopVariant &variant : metadirectiveLoopVariants_)
{
----------------
kparzysz wrote:
Done
https://github.com/llvm/llvm-project/pull/232353
_______________________________________________
llvm-branch-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits