Skip to content
This repository was archived by the owner on Mar 28, 2020. It is now read-only.

Fix use-of-temporary with StringRef in code coverage #36

Conversation

jrose-apple
Copy link
Contributor

Caught by adding a similar check to StringRef as r283798 did for ArrayRef. Reviewed by @vedantk as https://reviews.llvm.org/D26317.

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.

Reviewed by Vedant Kumar as https://reviews.llvm.org/D26317.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@286122 91177308-0d34-0410-b5e6-96231b3b80d8
@jrose-apple
Copy link
Contributor Author

@swift-ci Please test

@jrose-apple jrose-apple merged commit 2c132f7 into apple:swift-3.1-branch Nov 8, 2016
@jrose-apple jrose-apple deleted the swift-3.1-StringRef-temporaries branch November 8, 2016 21:36
swift-ci added a commit that referenced this pull request Nov 8, 2016
* origin/swift-3.1-branch:
  Fix use-of-temporary with StringRef in code coverage (#36)
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant