Skip to content
Snippets Groups Projects
Commit e7f815e1 authored by bdr7fv's avatar bdr7fv
Browse files

fixed newly added bug to coverage.cpp, was calculating total instructions for a func incorrectly.


Former-commit-id: 466370d9eebd247831907328c49237c16457013c
parent f218a297
No related branches found
No related tags found
No related merge requests found
......@@ -131,8 +131,6 @@ void coverage::print_coverage_for_file(file_coverage *fc, FileIR_t *fileirp, ofs
if(instr==NULL || instr->GetAddress()==NULL)
continue;
total_ins++;
unsigned int addr = (unsigned int) instr->GetAddress()->GetVirtualOffset();
if(fc->coverage.find(addr)!=fc->coverage.end())
covered_ins++;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment