Using a std::string instead of a StringRef because the Default case synthesizes a...
authorAaron Ballman <aaron@aaronballman.com>
Thu, 17 Jul 2014 13:28:50 +0000 (13:28 +0000)
committerAaron Ballman <aaron@aaronballman.com>
Thu, 17 Jul 2014 13:28:50 +0000 (13:28 +0000)
commit9eef7423081e6427086a9243b380a9e254067b05
tree7b902e29c6ef3b0242d8b2580fd45c70b8a1026c
parent92d20f3f90c2750c9ceef182310bc6d53735a55e
Using a std::string instead of a StringRef because the Default case synthesizes a temporary std::string from a Twine. Assigning that into a StringRef causes the StringRef to refer to a temporary, and bad things happen.

This fixes a failing test case on Windows.

llvm-svn: 213265
clang/lib/Driver/Tools.cpp