[PATCH] D116414: [AST] Produce ReturnStmt containing RecoveryExpr when type is wrong

Sam McCall via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Dec 30 08:35:58 PST 2021


sammccall added a comment.

No changes to evaluation makes sense as these patterns already exist today: `return undef();` produces a RecoveryExpr and `return;` is preserved in the AST with no value even for non-void functions.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D116414/new/

https://reviews.llvm.org/D116414



More information about the cfe-commits mailing list