diff options
| author | Zachary Turner <zturner@google.com> | 2018-07-03 18:12:39 +0000 |
|---|---|---|
| committer | Zachary Turner <zturner@google.com> | 2018-07-03 18:12:39 +0000 |
| commit | 4ca9432defc3c80d8247d16e0b7f0fb15c0f49f2 (patch) | |
| tree | f76d05e9aaa76ca7badde5a799605ebaf7090665 /llvm/lib/Target/TargetMachine.cpp | |
| parent | adc51ae4255044fe3ba50768013d7f47b2102c79 (diff) | |
| download | bcm5719-llvm-4ca9432defc3c80d8247d16e0b7f0fb15c0f49f2.tar.gz bcm5719-llvm-4ca9432defc3c80d8247d16e0b7f0fb15c0f49f2.zip | |
Fix crash in clang.
This happened during a recent refactor. toStringRefArray() returns
a vector<StringRef>, which was being implicitly converted to an
ArrayRef<StringRef>, and then the vector was immediately being
destroyed, so the ArrayRef<> was losing its backing storage.
Fix this by making sure the vector gets permanent storage.
llvm-svn: 336219
Diffstat (limited to 'llvm/lib/Target/TargetMachine.cpp')
0 files changed, 0 insertions, 0 deletions

