diff options
| author | Samuel Benzaquen <sbenza@google.com> | 2015-01-05 15:26:42 +0000 |
|---|---|---|
| committer | Samuel Benzaquen <sbenza@google.com> | 2015-01-05 15:26:42 +0000 |
| commit | 45ed4f954265175849efdd0d45940a64395b44d0 (patch) | |
| tree | f9f92b4eb3c9ecadeb31071f286f5b7ee7285a31 /clang/test | |
| parent | f199f4c593ec96835c1680795ddd3b33e29a29f8 (diff) | |
| download | bcm5719-llvm-45ed4f954265175849efdd0d45940a64395b44d0.tar.gz bcm5719-llvm-45ed4f954265175849efdd0d45940a64395b44d0.zip | |
Fix dangling pointer in isDerivedFrom.
Summary:
Replace usage of StringRef with std::string in AST_MATCHER* generated
matchers to make sure they keep their own copy of the string.
The value could be a temporary and it causes the pointer to be dangling
by the time the matcher is executed.
Reviewers: klimek
Subscribers: klimek, cfe-commits
Differential Revision: http://reviews.llvm.org/D6843
llvm-svn: 225180
Diffstat (limited to 'clang/test')
0 files changed, 0 insertions, 0 deletions

