1
0
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:
Xinliang David Li 2016-01-19 21:18:12 +00:00
parent 8017e50962
commit 1d582a4528

View File

@ -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 =