]> granicus.if.org Git - clang/commit
Fix use-after-destruction introduced in r224924.
authorAlexey Samsonov <vonosmas@gmail.com>
Mon, 29 Dec 2014 21:28:15 +0000 (21:28 +0000)
committerAlexey Samsonov <vonosmas@gmail.com>
Mon, 29 Dec 2014 21:28:15 +0000 (21:28 +0000)
commitdfa25cb2d16f812bb28bdf60b6b891f4e9140072
treef0c388b65ffd63c7d9be052b2fee953d7f25b558
parentfb0f98664f013bf5df72e091f3b4ea14a5283d8a
Fix use-after-destruction introduced in r224924.

getMainExecutable() returns a std::string, assigning its result
to StringRef immediately creates a dangling pointer. This was
detected by half-broken fast-MSan-bootstrap bot.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@224956 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Frontend/CompilerInvocation.cpp