[llvm] r364447 - Fix builbots after r364427.

Greg Clayton via llvm-commits llvm-commits at lists.llvm.org
Wed Jun 26 09:22:59 PDT 2019


Author: gclayton
Date: Wed Jun 26 09:22:58 2019
New Revision: 364447

URL: http://llvm.org/viewvc/llvm-project?rev=364447&view=rev
Log:
Fix builbots after r364427.

I was using an iterator that was equal to the end of a collection.


Modified:
    llvm/trunk/lib/DebugInfo/GSYM/Range.cpp

Modified: llvm/trunk/lib/DebugInfo/GSYM/Range.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/DebugInfo/GSYM/Range.cpp?rev=364447&r1=364446&r2=364447&view=diff
==============================================================================
--- llvm/trunk/lib/DebugInfo/GSYM/Range.cpp (original)
+++ llvm/trunk/lib/DebugInfo/GSYM/Range.cpp Wed Jun 26 09:22:58 2019
@@ -32,7 +32,7 @@ void AddressRanges::insert(const Address
       // Now check if the previous range intersects with the next range since
       // the previous range was combined. If so, combine them and remove the
       // next range.
-      if (PrevIter->intersect(*Iter))
+      if (Iter != End && PrevIter->intersect(*Iter))
         Ranges.erase(Iter);
       return;
     }




More information about the llvm-commits mailing list