From: Daniel Dunbar Date: Sun, 14 Feb 2010 08:32:11 +0000 (+0000) Subject: CIndex: Simplify (remove provably dead code). X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ecaceb5ab8e7a0583988bf7a03fe3c2400108c00;p=clang CIndex: Simplify (remove provably dead code). git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@96157 91177308-0d34-0410-b5e6-96231b3b80d8 --- 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