diff options
Diffstat (limited to 'clang/lib/AST/ParentMap.cpp')
| -rw-r--r-- | clang/lib/AST/ParentMap.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/AST/ParentMap.cpp b/clang/lib/AST/ParentMap.cpp index a27b0fd270c..939e6f9be52 100644 --- a/clang/lib/AST/ParentMap.cpp +++ b/clang/lib/AST/ParentMap.cpp @@ -51,7 +51,7 @@ bool ParentMap::isConsumedExpr(Expr* E) const { Stmt *DirectChild = E; // Ignore parents that are parentheses or casts. - while (P && (isa<ParenExpr>(E) || isa<CastExpr>(E))) { + while (P && (isa<ParenExpr>(P) || isa<CastExpr>(P))) { DirectChild = P; P = getParent(P); } |

