[Lldb-commits] [lldb] r240060 - Correct the end-of-vector check in GetCompactUnwindInfoForFunction().
Jason Molenda
jmolenda at apple.com
Thu Jun 18 14:15:58 PDT 2015
Author: jmolenda
Date: Thu Jun 18 16:15:58 2015
New Revision: 240060
URL: http://llvm.org/viewvc/llvm-project?rev=240060&view=rev
Log:
Correct the end-of-vector check in GetCompactUnwindInfoForFunction().
Problem noticed by Todd Fiala.
Modified:
lldb/trunk/source/Symbol/CompactUnwindInfo.cpp
Modified: lldb/trunk/source/Symbol/CompactUnwindInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Symbol/CompactUnwindInfo.cpp?rev=240060&r1=240059&r2=240060&view=diff
==============================================================================
--- lldb/trunk/source/Symbol/CompactUnwindInfo.cpp (original)
+++ lldb/trunk/source/Symbol/CompactUnwindInfo.cpp Thu Jun 18 16:15:58 2015
@@ -525,7 +525,7 @@ CompactUnwindInfo::GetCompactUnwindInfoF
}
auto next_it = it + 1;
- if (next_it != m_indexes.begin())
+ if (next_it != m_indexes.end())
{
// initialize the function offset end range to be the start of the
// next index offset. If we find an entry which is at the end of
More information about the lldb-commits
mailing list