From ecaceb5ab8e7a0583988bf7a03fe3c2400108c00 Mon Sep 17 00:00:00 2001 From: Daniel Dunbar Date: Sun, 14 Feb 2010 08:32:11 +0000 Subject: [PATCH] CIndex: Simplify (remove provably dead code). git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@96157 91177308-0d34-0410-b5e6-96231b3b80d8 --- tools/CIndex/CIndex.cpp | 4 ---- 1 file changed, 4 deletions(-) diff --git a/tools/CIndex/CIndex.cpp b/tools/CIndex/CIndex.cpp index bd897d9eb3..fd8ce2a425 100644 --- a/tools/CIndex/CIndex.cpp +++ b/tools/CIndex/CIndex.cpp @@ -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 -- 2.50.1