aboutsummaryrefslogtreecommitdiff
path: root/lib/AST/ParentMap.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/AST/ParentMap.cpp')
-rw-r--r--lib/AST/ParentMap.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/AST/ParentMap.cpp b/lib/AST/ParentMap.cpp
index a27b0fd270..939e6f9be5 100644
--- a/lib/AST/ParentMap.cpp
+++ b/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);
}