Fix assert.

This commit is contained in:
Bartosz Taudul 2021-07-26 01:18:17 +02:00
parent c222327edb
commit 55a966f9c6
No known key found for this signature in database
GPG Key ID: B7FE2008B7575DF3

View File

@ -4253,7 +4253,7 @@ void SourceView::CountHwStats( AddrStatData& as, Worker& worker, const View& vie
branch = sqrt( hw->branchMiss.size() * hw->branchRetired.size() );
cache = sqrt( hw->cacheMiss.size() * hw->cacheRef.size() );
}
assert( as.ipCountAsm.find( addr ) == as.ipCountAsm.end() );
assert( as.hwCountAsm.find( addr ) == as.hwCountAsm.end() );
as.hwCountAsm.emplace( addr, AddrStat { branch, cache } );
if( as.hwMaxAsm.local < branch ) as.hwMaxAsm.local = branch;
if( as.hwMaxAsm.ext < cache ) as.hwMaxAsm.ext = cache;