mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-04 09:00:44 +00:00
Limit the section of code we search for inline sites
This commit is contained in:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user