]> granicus.if.org Git - llvm/commit
[llvm-cov] Clean up an awkward capture-by-reference (NFC)
authorVedant Kumar <vsk@apple.com>
Fri, 15 Jul 2016 01:19:35 +0000 (01:19 +0000)
committerVedant Kumar <vsk@apple.com>
Fri, 15 Jul 2016 01:19:35 +0000 (01:19 +0000)
commitb9d9ab2c3263130e85ff1f322134358fb885c90b
treed7ddf1b0aa09ce8eac5e23b56fcf8ff146f4c0b3
parent7b18a76385d476a3c801a52ffd5e217b53d681b1
[llvm-cov] Clean up an awkward capture-by-reference (NFC)

Writing `for (StringRef &SourceFile : ...)` is strange to begin with.
Subsequently capturing "SourceFile" by reference is even stranger. Just
copy the StringRef, since that's cheap to do.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@275515 91177308-0d34-0410-b5e6-96231b3b80d8
tools/llvm-cov/CodeCoverage.cpp