Browse Source

Fix a corner case that ted hit in -emit-html, rdar://5863212

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@49703 91177308-0d34-0410-b5e6-96231b3b80d8
Chris Lattner 17 năm trước cách đây
mục cha
commit
53f9e203c1
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      lib/Rewrite/DeltaTree.cpp

+ 1 - 1
lib/Rewrite/DeltaTree.cpp

@@ -457,7 +457,7 @@ int DeltaTree::getDeltaAt(unsigned FileIndex) const {
     // partial results.
     if (NumValsGreater != Node->getNumValuesUsed() &&
         Node->getValue(NumValsGreater).FileLoc == FileIndex)
-      return Result;
+      return Result+IN->getChild(NumValsGreater)->getFullDelta();
     
     // Otherwise, traverse down the tree.  The selected subtree may be
     // partially included in the range.