================
@@ -329,6 +329,9 @@ ConstantExpr::getStorageKind(const Type *T, const 
ASTContext &Context) {
 ConstantExpr::ConstantExpr(Expr *SubExpr, ConstantResultStorageKind 
StorageKind,
                            bool IsImmediateInvocation)
     : FullExpr(ConstantExprClass, SubExpr) {
+
+  if (!SubExpr->getType()->isVoidType())
----------------
tbaederr wrote:

I think I should probably remove the assertion altogether in this PR, it 
belongs in https://github.com/llvm/llvm-project/pull/230388

https://github.com/llvm/llvm-project/pull/229761
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to