]> granicus.if.org Git - clang/commitdiff
CIndex: Simplify (remove provably dead code).
authorDaniel Dunbar <daniel@zuster.org>
Sun, 14 Feb 2010 08:32:11 +0000 (08:32 +0000)
committerDaniel Dunbar <daniel@zuster.org>
Sun, 14 Feb 2010 08:32:11 +0000 (08:32 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@96157 91177308-0d34-0410-b5e6-96231b3b80d8

tools/CIndex/CIndex.cpp

index bd897d9eb3cad671ff21ab9cf93b97dc7bffa5eb..fd8ce2a425bd42f935d1cc588298926345dac5d3 100644 (file)
@@ -319,10 +319,6 @@ public:
 } // end anonymous namespace
 
 RangeComparisonResult CursorVisitor::CompareRegionOfInterest(SourceRange R) {
-  assert(RegionOfInterest.isValid() && "RangeCompare called with invalid range");
-  if (R.isInvalid())
-    return RangeOverlap;
-
   // Move the end of the input range to the end of the last token in that
   // range.
   SourceLocation NewEnd