================
@@ -4700,6 +4700,10 @@ ExprResult 
Sema::CreateUnaryExprOrTypeTraitExpr(TypeSourceInfo *TInfo,
       TInfo->getType()->isVariablyModifiedType())
     TInfo = TransformToPotentiallyEvaluated(TInfo);
 
+  // It's possible that the transformation above failed.
+  if (!TInfo)
+    return ExprError();
----------------
erichkeane wrote:

Hmm... i guess we do the same problem above, but it is a shame we don't do a 
better job trying to just create one of these with a RecoveryExpr in the expr.

https://github.com/llvm/llvm-project/pull/138543
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to