]> granicus.if.org Git - clang/commitdiff
Fix a corner case that ted hit in -emit-html, rdar://5863212
authorChris Lattner <sabre@nondot.org>
Tue, 15 Apr 2008 02:26:21 +0000 (02:26 +0000)
committerChris Lattner <sabre@nondot.org>
Tue, 15 Apr 2008 02:26:21 +0000 (02:26 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@49703 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Rewrite/DeltaTree.cpp

index f7715312eb8a44e57983c2cbf7b1d3cb90e3d55c..5d51ddae08965a7d2fca721b6fe36b1612c02512 100644 (file)
@@ -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.