From: Samuel Antao Date: Sat, 16 Jul 2016 00:15:56 +0000 (+0000) Subject: Use std::string instead of StringRef when generating the auxiliar triple in the front... X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0968b299ff4646981dde6cf06a43d0598df80cef;p=clang Use std::string instead of StringRef when generating the auxiliar triple in the frontend tool. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@275651 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Driver/Tools.cpp b/lib/Driver/Tools.cpp index df4a996e47..0e5471fe7c 100644 --- a/lib/Driver/Tools.cpp +++ b/lib/Driver/Tools.cpp @@ -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() ->getTriple()