aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Support/FileCheck.cpp
diff options
context:
space:
mode:
authorYitzhak Mandelbaum <yitzhakm@google.com>2019-05-23 17:11:33 +0000
committerYitzhak Mandelbaum <yitzhakm@google.com>2019-05-23 17:11:33 +0000
commitaa7a2c547e2802f15c9346bff18c5d5c585ab882 (patch)
tree43b24469038a3c80e7f2e2236fc6df4838461cce /llvm/lib/Support/FileCheck.cpp
parentc5ec2a2bc1980e21910ca5c649cc0c3346979fa7 (diff)
downloadllvm-aa7a2c547e2802f15c9346bff18c5d5c585ab882.zip
llvm-aa7a2c547e2802f15c9346bff18c5d5c585ab882.tar.gz
llvm-aa7a2c547e2802f15c9346bff18c5d5c585ab882.tar.bz2
[LibTooling] Fix dangling references in RangeSelector.
Summary: RangeSelector had a number of cases of capturing a StringRef in a lambda, which lead to dangling references. This change converts all uses in the API of `StringRef` to `std::string` to avoid this problem. `std::string` in the API is a reasonable choice, because the combinators are always storing the string beyond the life of the combinator construction. Reviewers: ilya-biryukov, gribozavr Subscribers: cfe-commits Tags: #clang Differential Revision: https://reviews.llvm.org/D62328 llvm-svn: 361514
Diffstat (limited to 'llvm/lib/Support/FileCheck.cpp')
0 files changed, 0 insertions, 0 deletions