Skip to content

Commit 61b806f

Browse files
committed
[clang] assign the correct parent in update to ParentMap
This fixes a bug that slipped into #121736.
1 parent d6bfe10 commit 61b806f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang/lib/AST/ParentMap.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ static void BuildParentMap(MapTy& M, Stmt* S,
4141
if (OVMode == OV_Opaque)
4242
break;
4343
// Update the entry in transparent mode, and clear existing state.
44-
Iter->second = SF;
44+
Iter->second = S;
4545
for (Stmt *SubStmt : S->children())
4646
M.erase(SubStmt);
4747
}

0 commit comments

Comments
 (0)