This is an archive of the discontinued LLVM Phabricator instance.

Fix use-of-temporary with StringRef in code coverage
ClosedPublic

Authored by jordan_rose on Nov 4 2016, 4:59 PM.

Details

Reviewers
vsk
Summary

The fixed code is basically identical to the same loop below, which might indicate an opportunity for refactoring. I just wanted to fix the use-of-temporary issue.

Caught by adding a similar check to StringRef as r283798 did for ArrayRef. I'll be upstreaming that soon.

Diff Detail

Repository
rL LLVM

Event Timeline

jordan_rose updated this revision to Diff 76954.Nov 4 2016, 4:59 PM
jordan_rose retitled this revision from to Fix use-of-temporary with StringRef in code coverage.
jordan_rose updated this object.
jordan_rose added a reviewer: vsk.
jordan_rose set the repository for this revision to rL LLVM.
jordan_rose added a subscriber: cfe-commits.
vsk accepted this revision.Nov 5 2016, 12:55 PM
vsk edited edge metadata.

Thanks, lgtm. I've made a note to clean this up.

This revision is now accepted and ready to land.Nov 5 2016, 12:55 PM
jordan_rose closed this revision.Nov 7 2016, 9:37 AM

Committed as r286122.