From cc247bc1eb330dd2d3ccebabc7c1d3b524073627 Mon Sep 17 00:00:00 2001 From: Ritanya B Bharadwaj Date: Mon, 14 Jul 2025 03:18:25 -0500 Subject: [PATCH] [Clang][OpenMP] Fixing error - 147336 --- clang/lib/Parse/ParseOpenMP.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clang/lib/Parse/ParseOpenMP.cpp b/clang/lib/Parse/ParseOpenMP.cpp index aa6a0c61a2c17..5db2f2e2ccf86 100644 --- a/clang/lib/Parse/ParseOpenMP.cpp +++ b/clang/lib/Parse/ParseOpenMP.cpp @@ -2704,7 +2704,7 @@ StmtResult Parser::ParseOpenMPDeclarativeOrExecutableDirective( // If no match is found and no otherwise clause is present, skip // OMP5.2 Chapter 7.4: If no otherwise clause is specified the effect is as // if one was specified without an associated directive variant. - if (BestIdx == -1 && Idx == 1) { + if (BestIdx == -1 && Idx > 0) { assert(Tok.is(tok::annot_pragma_openmp_end) && "Expecting the end of the pragma here"); ConsumeAnnotationToken();