From: Alexander Shaposhnikov Date: Thu, 27 Apr 2023 23:34:03 +0000 (+0000) Subject: [Clang][Sema] Add a temporary workaround in SemaConcept.cpp X-Git-Tag: upstream/17.0.6~10127 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ce861ec782ae3f41807b61e855512aaccf3c2149;p=platform%2Fupstream%2Fllvm.git [Clang][Sema] Add a temporary workaround in SemaConcept.cpp This commit adds FIXME and a temporary workaround to repair CUDA build bots after e3b1083e00e62f. --- diff --git a/clang/lib/Sema/SemaConcept.cpp b/clang/lib/Sema/SemaConcept.cpp index f208cdb..a9335d6 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 EvaluationDiags;