Author: Alexander Shaposhnikov Date: 2023-04-27T23:34:03Z New Revision: ce861ec782ae3f41807b61e855512aaccf3c2149
URL: https://github.com/llvm/llvm-project/commit/ce861ec782ae3f41807b61e855512aaccf3c2149 DIFF: https://github.com/llvm/llvm-project/commit/ce861ec782ae3f41807b61e855512aaccf3c2149.diff LOG: [Clang][Sema] Add a temporary workaround in SemaConcept.cpp This commit adds FIXME and a temporary workaround to repair CUDA build bots after e3b1083e00e62f. Added: Modified: clang/lib/Sema/SemaConcept.cpp Removed: ################################################################################ diff --git a/clang/lib/Sema/SemaConcept.cpp b/clang/lib/Sema/SemaConcept.cpp index f208cdbd1d87..a9335d6689ec 100644 --- a/clang/lib/Sema/SemaConcept.cpp +++ b/clang/lib/Sema/SemaConcept.cpp @@ -260,6 +260,11 @@ calculateConstraintSatisfaction(Sema &S, const Expr *ConstraintExpr, return SubstitutedAtomicExpr; } + // FIXME: Remove this workaround. + // It's necessary to investigate how we get here. + if (SubstitutedAtomicExpr.get()->isValueDependent()) + return SubstitutedAtomicExpr; + EnterExpressionEvaluationContext ConstantEvaluated( S, Sema::ExpressionEvaluationContext::ConstantEvaluated); SmallVector<PartialDiagnosticAt, 2> EvaluationDiags; _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits