[clang] [Clang][OpenMP] Fixed an assertion on omp taskloop transparent (PR #200663)
Aaron Ballman via cfe-commits
cfe-commits at lists.llvm.org
Fri Jul 24 08:54:59 PDT 2026
================
@@ -17926,6 +17926,11 @@ OMPClause *SemaOpenMP::ActOnOpenMPTransparentClause(Expr *ImpexTypeArg,
SourceLocation EndLoc) {
Stmt *HelperValStmt = nullptr;
OpenMPDirectiveKind DKind = DSAStack->getCurrentDirective();
+
+ if (!isAllowedClauseForDirective(DKind, OMPC_transparent,
----------------
AaronBallman wrote:
Assertion failures indicate that we've gotten the compiler into an incorrect state; can you explain why turning the assertion into an `if` is the correct fix?
(Btw, was an LLM involved in this change?)
https://github.com/llvm/llvm-project/pull/200663
More information about the cfe-commits
mailing list