Limit the section of code we search for inline sites

This commit is contained in:
baldurk
2018-06-08 15:04:15 +01:00
parent 8b5ab06da7
commit 7751a5749a
+3 -1
View File
@@ -1541,7 +1541,9 @@ SPDBChunk::SPDBChunk(DXBCFile *dxbc, void *chunk)
int nPatched = 0;
for(auto it = m_Lines.begin(); it != m_Lines.end(); ++it)
auto it = m_Lines.lower_bound(loc.offsetStart);
for(; it != m_Lines.end() && it->first <= loc.offsetEnd; ++it)
{
if((it->first >= loc.offsetStart && it->first < loc.offsetEnd) ||
(it->first == loc.offsetStart && it->first == loc.offsetEnd))