-
Notifications
You must be signed in to change notification settings - Fork 15.1k
Closed
Description
There are two places that move CoverageData inside a loop:
llvm-project/llvm/tools/llvm-cov/CodeCoverage.cpp
Lines 351 to 353 in 4310076
| View.addBranch(CurrentLine, std::move(ViewBranches), | |
| SourceCoverageView::create(SourceName, File, ViewOpts, | |
| std::move(CoverageInfo))); |
llvm-project/llvm/tools/llvm-cov/CodeCoverage.cpp
Lines 377 to 379 in 4310076
| View.addMCDCRecord(CurrentLine, std::move(ViewMCDCRecords), | |
| SourceCoverageView::create(SourceName, File, ViewOpts, | |
| std::move(CoverageInfo))); |
This looks incorrect to me, but I'm also unsure on what the right fix for this would be, as SourceCoverageView::create() accepts CoverageData by rvalue reference.