[PATCH] D58069: [Sema] Mark GNU compound literal array init as an rvalue.
Richard Smith - zygoloid via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon Feb 11 14:12:39 PST 2019
rsmith accepted this revision.
rsmith added inline comments.
This revision is now accepted and ready to land.
================
Comment at: lib/Sema/SemaInit.cpp:172-173
+ E = PE->getSubExpr();
+ else if (UnaryOperator *UO = dyn_cast<UnaryOperator>(E))
+ E = UO->getSubExpr();
+ else if (GenericSelectionExpr *GSE = dyn_cast<GenericSelectionExpr>(E))
----------------
I guess this is just for `UO_Extension`. Is it worth asserting that?
Repository:
rC Clang
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D58069/new/
https://reviews.llvm.org/D58069
More information about the cfe-commits
mailing list