================
@@ -13976,6 +13976,11 @@ ExprResult
TreeTransform<Derived>::TransformUnaryExprOrTypeTraitExpr(
UnaryExprOrTypeTraitExpr *E) {
if (E->isArgumentType()) {
+ // Transform the type operand in an unevaluated context, as the parser
does.
+ EnterExpressionEvaluationContext Unevaluated(
----------------
efriedma-quic wrote:
This seems right, but it's interesting this is only coming up now; which
testcase does it affect?
(You can also just move the EnterExpressionEvaluationContext declaration from
below to above the if statement.)
https://github.com/llvm/llvm-project/pull/229697
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits