Use std::string instead of StringRef when generating the auxiliar triple in the front...
authorSamuel Antao <sfantao@us.ibm.com>
Sat, 16 Jul 2016 00:15:56 +0000 (00:15 +0000)
committerSamuel Antao <sfantao@us.ibm.com>
Sat, 16 Jul 2016 00:15:56 +0000 (00:15 +0000)
llvm-svn: 275651

clang/lib/Driver/Tools.cpp

index df4a996..0e5471f 100644 (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()