[PATCH] D49508: [CodeGen] VisitMaterializeTemporaryExpr(): don't skip NoOp Casts.

John McCall via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Jul 18 21:11:21 PDT 2018


rjmccall added a comment.

I think it would be reasonable to set a flag on `ImplicitCastExpr`s that are actually semantically part of an explicit cast.  I don't think that would be hard to get Sema to do, either by passing a flag down to the code that builds those casts or just by retroactively setting that flag on all the ICE sub-expressions of an explicit cast when "capping" it with the `ExplicitCastExpr`.


Repository:
  rC Clang

https://reviews.llvm.org/D49508





More information about the cfe-commits mailing list