[all-commits] [llvm/llvm-project] 77898a: Coverage: Fix iterated type for LineCoverageIterator

Duncan P. N. Exon Smith via All-commits all-commits at lists.llvm.org
Tue Nov 16 14:40:12 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 77898a4c0c8c6d2366909aee4e145b01c534162e
      https://github.com/llvm/llvm-project/commit/77898a4c0c8c6d2366909aee4e145b01c534162e
  Author: Duncan P. N. Exon Smith <dexonsmith at apple.com>
  Date:   2021-11-16 (Tue, 16 Nov 2021)

  Changed paths:
    M llvm/include/llvm/ProfileData/Coverage/CoverageMapping.h
    M llvm/unittests/ProfileData/CoverageMappingTest.cpp

  Log Message:
  -----------
  Coverage: Fix iterated type for LineCoverageIterator

LineCoverageIterator is not providing access to a mutable object. Fix it
to iterate over `const LineCoverageStats` so that `operator->()`
compiles again after 6b9b86db9dd974585a5c71cf2e5231d1e3385f7c.




More information about the All-commits mailing list