diff options
author | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2011-11-05 07:09:40 +0000 |
---|---|---|
committer | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2011-11-05 07:09:40 +0000 |
commit | ef911a1bc5ef41c4d43c39294270aeb1dd8d4dac (patch) | |
tree | b19e9a3285a7899056eefa82436dde51cc61b52d /lib/Analysis/LiveVariables.cpp | |
parent | 51e4e1ee2cd46a623df2c7a3f87e48ebcbf7b546 (diff) |
LookThroughStmt GM release.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@143796 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/LiveVariables.cpp')
-rw-r--r-- | lib/Analysis/LiveVariables.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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<Expr>(S)) - return E->IgnoreParens(); if (const OpaqueValueExpr *OVE = dyn_cast<OpaqueValueExpr>(S)) return OVE->getSourceExpr()->IgnoreParens(); + if (const Expr *E = dyn_cast<Expr>(S)) + return E->IgnoreParens(); return S; } |