[PATCH] D54356: Convert CheckICE into a statment visitor

Richard Smith - zygoloid via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Nov 13 12:19:33 PST 2018


rsmith added a comment.

Can you explain more about the justification for this? The code today has a covered switch, which is useful for maintainability -- anyone adding a new `Expr` node gets told they need to think about and update this code. Are there any cases where we check for an ICE and aren't in a constant context? I would have expected that the fact we're asking implies that we are in a constant context (at least when the answer is "yes").


Repository:
  rC Clang

https://reviews.llvm.org/D54356





More information about the cfe-commits mailing list