Index: llvm/tools/llvm-cov/CodeCoverage.cpp =================================================================== --- llvm/tools/llvm-cov/CodeCoverage.cpp +++ llvm/tools/llvm-cov/CodeCoverage.cpp @@ -487,7 +487,7 @@ // Create a mapping from coverage data file paths to local paths. for (StringRef Filename : Coverage.getUniqueSourceFiles()) { - if (!RemappedFilenames[Filename].empty()) + if (RemappedFilenames.count(Filename) == 1) continue; SmallString<128> NativeFilename;