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

Samuel Antao via cfe-commits cfe-commits at lists.llvm.org
Fri Jul 15 17:15:57 PDT 2016


Author: sfantao
Date: Fri Jul 15 19:15:56 2016
New Revision: 275651

URL: http://llvm.org/viewvc/llvm-project?rev=275651&view=rev
Log:
Use std::string instead of StringRef when generating the auxiliar triple in the frontend tool. 

Modified:
    cfe/trunk/lib/Driver/Tools.cpp

Modified: cfe/trunk/lib/Driver/Tools.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Driver/Tools.cpp?rev=275651&r1=275650&r2=275651&view=diff
==============================================================================
--- cfe/trunk/lib/Driver/Tools.cpp (original)
+++ cfe/trunk/lib/Driver/Tools.cpp Fri Jul 15 19:15:56 2016
@@ -3847,7 +3847,7 @@ void Clang::ConstructJob(Compilation &C,
   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()




More information about the cfe-commits mailing list