================
@@ -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
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits