mirror of
https://github.com/RPCSX/llvm.git
synced 2025-02-22 05:51:42 +00:00
Fix a coverage reading bug
function record pointer is not advanced when duplicate entry is found. Test case to be added. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@258188 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
08e6e6af38
commit
306bcccc42
@ -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