[PATCH] D46234: Mark if a null statement is the result of constexpr folding

Richard Smith - zygoloid via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Nov 27 17:21:31 PST 2019


rsmith added a comment.

In D46234#1762104 <https://reviews.llvm.org/D46234#1762104>, @xazax.hun wrote:

> Just a note for anyone willing to pick this up, PR32203 is also related.


Further note: the right approach here would likely be to add a `DiscardedStmt` class deriving from `Stmt` that represents a discarded arm of an `if constexpr`, rather than modeling this as a `NullStmt`.


Repository:
  rC Clang

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

https://reviews.llvm.org/D46234





More information about the cfe-commits mailing list