]> granicus.if.org Git - clang/commit
[GCC] Don't keep a StringRef to a temporary std::string
authorMartin Storsjo <martin@martin.st>
Tue, 24 Apr 2018 11:57:02 +0000 (11:57 +0000)
committerMartin Storsjo <martin@martin.st>
Tue, 24 Apr 2018 11:57:02 +0000 (11:57 +0000)
commit7140ad92debc63af78a9c50dcad2a0b6d4ebc680
treed989f1b907be7eb1b70045df24bfab9135b22049
parentf714fd98c80091aa372305710cd2488922a430ee
[GCC] Don't keep a StringRef to a temporary std::string

This fixes failures in asan builds and possibly other buildbots
as well, after SVN r330696.

Prior to that revision, the std::string was stored in another
variable, before assigning to a StringRef.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@330710 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Driver/ToolChains/Gnu.cpp