diff options
| author | Benjamin Kramer <benny.kra@googlemail.com> | 2015-02-18 18:45:54 +0000 |
|---|---|---|
| committer | Benjamin Kramer <benny.kra@googlemail.com> | 2015-02-18 18:45:54 +0000 |
| commit | 33cd6dcf87295e4165fe9fca56b078eb686d044a (patch) | |
| tree | 67a724a834b2e9ad002e68df7a4e127525180a38 /llvm/cmake/modules/LLVMConfigVersion.cmake.in | |
| parent | 568b0de17091aea712d411d15ff2ecf8b947b7c5 (diff) | |
| download | bcm5719-llvm-33cd6dcf87295e4165fe9fca56b078eb686d044a.tar.gz bcm5719-llvm-33cd6dcf87295e4165fe9fca56b078eb686d044a.zip | |
Driver: Fix use of dangling std::string temporary
What's going on here is that the ternary operator produces a std::string rvalue
that the StringRef points to. I'd hoped bugs like this were a thing of the past
with our asan testing but apparently this code path is only used when LLVM is
configured with a custom --with-c-include-dirs setting.
Unbreaks bootstrapping with GCC5 on Fedora (PR22625), patch by Jonathan Wakely!
llvm-svn: 229719
Diffstat (limited to 'llvm/cmake/modules/LLVMConfigVersion.cmake.in')
0 files changed, 0 insertions, 0 deletions

