This is an archive of the discontinued LLVM Phabricator instance.

[Coverage][Unittest] Fix stringref issue
ClosedPublic

Authored by jsji on Feb 23 2021, 9:10 PM.

Details

Summary

We will pass StringRef and change it in reader.
But we reuse the same Filename vector without clear it,
so in some systems, we may clobbeer previous results.

Diff Detail

Event Timeline

jsji requested review of this revision.Feb 23 2021, 9:10 PM
jsji created this revision.
Herald added a project: Restricted Project. · View Herald TranscriptFeb 23 2021, 9:10 PM
phosek accepted this revision.Feb 23 2021, 10:44 PM

LGTM, thanks a lot for looking into this!

llvm/unittests/ProfileData/CoverageMappingTest.cpp
204–205

Would it be possible to move the comment on the line above?

This revision is now accepted and ready to land.Feb 23 2021, 10:44 PM
jsji updated this revision to Diff 326073.Feb 24 2021, 6:26 AM

Update comments.

This revision was landed with ongoing or failed builds.Feb 24 2021, 7:00 AM
This revision was automatically updated to reflect the committed changes.