================
@@ -1388,8 +1389,7 @@ void
Parser::ParseOMPDeclareVariantClauses(Parser::DeclGroupPtrTy Ptr,
OpenMPClauseKind CKind = Tok.isAnnotation()
? OMPC_unknown
: getOpenMPClauseKind(PP.getSpelling(Tok));
- if (!isAllowedClauseForDirective(OMPD_declare_variant, CKind,
- getLangOpts().OpenMP)) {
+ if (!isAllowedClauseForDirective(OMPD_declare_variant, CKind, OMPVersion))
{
Diag(Tok.getLocation(), diag::err_omp_declare_variant_wrong_clause)
<< (getLangOpts().OpenMP < 51 ? 0 : 1);
----------------
kparzysz wrote:
Done
https://github.com/llvm/llvm-project/pull/219821
_______________________________________________
llvm-branch-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits