Use std::string instead of StringRef when generating the auxiliar triple in the frontend tool.

llvm-svn: 275651
This commit is contained in:
Samuel Antao 2016-07-16 00:15:56 +00:00
parent 2fd32138ef
commit 2f7b339731
1 changed files with 1 additions and 1 deletions

View File

@ -3847,7 +3847,7 @@ void Clang::ConstructJob(Compilation &C, const JobAction &JA,
if (IsCuda) {
// We have to pass the triple of the host if compiling for a CUDA device and
// vice-versa.
StringRef NormalizedTriple;
std::string NormalizedTriple;
if (JA.isDeviceOffloading(Action::OFK_Cuda))
NormalizedTriple = C.getSingleOffloadToolChain<Action::OFK_Host>()
->getTriple()