mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-31 20:51:52 +01:00
Fix a coverage reading bug
function record pointer is not advanced when duplicate entry is found. Test case to be added. llvm-svn: 258188
This commit is contained in:
parent
8017e50962
commit
1d582a4528
@ -396,8 +396,10 @@ public:
|
||||
// function name. This is useful to ignore the redundant records for the
|
||||
// functions with ODR linkage.
|
||||
NameRefType NameRef = CFR->template getFuncNameRef<Endian>();
|
||||
if (!UniqueFunctionMappingData.insert(NameRef).second)
|
||||
if (!UniqueFunctionMappingData.insert(NameRef).second) {
|
||||
CFR++;
|
||||
continue;
|
||||
}
|
||||
|
||||
StringRef FuncName;
|
||||
if (std::error_code EC =
|
||||
|
Loading…
x
Reference in New Issue
Block a user