rsmith accepted this revision.
rsmith added inline comments.
This revision is now accepted and ready to land.


================
Comment at: lib/AST/Stmt.cpp:121-122
 
-  if (auto *bte = dyn_cast<CXXBindTemporaryExpr>(s))
-    s = bte->getSubExpr();
+    if (auto *ewc = dyn_cast<ExprWithCleanups>(s))
+      s = ewc->getSubExpr();
 
----------------
`ExprWithCleanups` can only appear at the top level. But... maybe it's not 
worth treating that as a special case.


Repository:
  rC Clang

https://reviews.llvm.org/D50666



_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
  • [PATCH] D50666: F... Stephen Kelly via Phabricator via cfe-commits
    • [PATCH] D506... Richard Smith - zygoloid via Phabricator via cfe-commits
    • [PATCH] D506... Stephen Kelly via Phabricator via cfe-commits

Reply via email to