AaronBallman wrote: > > CodeGen is not supposed to ever see an expression that contains errors. If > > we ever construct an expression contains errors, that should trigger an > > "error" diagnostic, which stops CodeGen. > > We should trigger a "statement requires expression of scalar type" > > diagnostic, like we would for an empty StmtExpr. > > @AaronBallman Eli would rather not touch CodeGen and have Sema emit > "statement requires expression of scalar type" instead. We could do that > without adding an AST node. OK with you before I rework it??
That seems reasonable to me https://github.com/llvm/llvm-project/pull/224682 _______________________________________________ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
