Skip to content

Commit fdae557

Browse files
committed
[clang] DeltaTree::AddDelta - fix "initialization is never read" clang-tidy warning. NFCI.
1 parent 232f32f commit fdae557

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

clang/lib/Rewrite/DeltaTree.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -458,7 +458,10 @@ void DeltaTree::AddDelta(unsigned FileIndex, int Delta) {
458458

459459
DeltaTreeNode::InsertResult InsertRes;
460460
if (MyRoot->DoInsertion(FileIndex, Delta, &InsertRes)) {
461-
Root = MyRoot = new DeltaTreeInteriorNode(InsertRes);
461+
Root = new DeltaTreeInteriorNode(InsertRes);
462+
#ifdef VERIFY_TREE
463+
MyRoot = Root;
464+
#endif
462465
}
463466

464467
#ifdef VERIFY_TREE

0 commit comments

Comments
 (0)