llvm-project/clang/lib/Driver
Benjamin Kramer 33cd6dcf87 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
2015-02-18 18:45:54 +00:00
..
Action.cpp Reapply "Change -save-temps to emit unoptimized bitcode files." 2014-12-21 07:00:00 +00:00
CMakeLists.txt Driver: add CrossWindowsToolChain 2014-10-24 03:13:37 +00:00
Compilation.cpp Driver: Use pointee_iterator rather than iterating over unique_ptrs 2014-10-03 01:04:53 +00:00
CrossWindowsToolChain.cpp Driver: correct typo 2014-11-19 17:59:00 +00:00
Driver.cpp PR 17421: Implemented -save-temps={obj|cwd} option 2015-02-02 22:41:48 +00:00
DriverOptions.cpp Remove the SUPPORT_ALIASARGS define 2013-08-01 00:12:13 +00:00
InputInfo.h Header guard canonicalization, clang part. 2014-08-13 16:25:19 +00:00
Job.cpp Prefer SmallVector::append/insert over push_back loops. Clang edition. 2015-02-17 16:48:30 +00:00
MSVCToolChain.cpp Remove a stray blank line that my sort_include.py script found. 2015-02-13 09:57:05 +00:00
Makefile
Multilib.cpp Driver: Simplify a use of the path API 2014-08-03 21:46:33 +00:00
Phases.cpp Reapply "Change -save-temps to emit unoptimized bitcode files." 2014-12-21 07:00:00 +00:00
SanitizerArgs.cpp Append -fno-assume-sane-operator-new in ASan builds. 2015-02-17 15:09:33 +00:00
Tool.cpp Teach Clang how to use response files when calling other tools 2014-09-15 17:45:39 +00:00
ToolChain.cpp Reapply "Change -save-temps to emit unoptimized bitcode files." 2014-12-21 07:00:00 +00:00
ToolChains.cpp Driver: Fix use of dangling std::string temporary 2015-02-18 18:45:54 +00:00
ToolChains.h Do not force "-static" for aarch64 iOS kernel/kext assembly code. 2015-02-10 06:33:04 +00:00
Tools.cpp [ARM] Add missing M/R class CPUs 2015-02-18 10:34:48 +00:00
Tools.h [mips] Pass ABI name via -target-abi instead of target-features 2015-01-30 17:35:23 +00:00
Types.cpp Reapply "Change -save-temps to emit unoptimized bitcode files." 2014-12-21 07:00:00 +00:00