]> granicus.if.org Git - clang/commitdiff
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)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@275651 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Driver/Tools.cpp

index df4a996e47f0780dd60e2912e25c6174339acaa9..0e5471fe7ccda6c3951d1bf160650c6ae045e3da 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()