[Clang][Sema] Add a temporary workaround in SemaConcept.cpp
authorAlexander Shaposhnikov <ashaposhnikov@google.com>
Thu, 27 Apr 2023 23:34:03 +0000 (23:34 +0000)
committerAlexander Shaposhnikov <ashaposhnikov@google.com>
Thu, 27 Apr 2023 23:34:03 +0000 (23:34 +0000)
This commit adds FIXME and a temporary workaround to repair
CUDA build bots after e3b1083e00e62f.

clang/lib/Sema/SemaConcept.cpp

index f208cdb..a9335d6 100644 (file)
@@ -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;