through it, so we should look through it for the live-values
analysis as well.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@144190
91177308-0d34-0410-b5e6-
96231b3b80d8
while (S) {
if (const Expr *Ex = dyn_cast<Expr>(S))
S = Ex->IgnoreParens();
+ if (const ExprWithCleanups *EWC = dyn_cast<ExprWithCleanups>(S)) {
+ S = EWC->getSubExpr();
+ continue;
+ }
if (const OpaqueValueExpr *OVE = dyn_cast<OpaqueValueExpr>(S)) {
S = OVE->getSourceExpr();
continue;