From: Argyrios Kyrtzidis Date: Sat, 5 Nov 2011 07:09:40 +0000 (+0000) Subject: LookThroughStmt GM release. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ef911a1bc5ef41c4d43c39294270aeb1dd8d4dac;p=clang LookThroughStmt GM release. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@143796 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Analysis/LiveVariables.cpp b/lib/Analysis/LiveVariables.cpp index 9e10cb4ec1..69b0933042 100644 --- a/lib/Analysis/LiveVariables.cpp +++ b/lib/Analysis/LiveVariables.cpp @@ -232,10 +232,10 @@ static const VariableArrayType *FindVA(QualType Ty) { } static const Stmt *LookThroughStmt(const Stmt *S) { - if (const Expr *E = dyn_cast(S)) - return E->IgnoreParens(); if (const OpaqueValueExpr *OVE = dyn_cast(S)) return OVE->getSourceExpr()->IgnoreParens(); + if (const Expr *E = dyn_cast(S)) + return E->IgnoreParens(); return S; }