projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2fd3213
)
Use std::string instead of StringRef when generating the auxiliar triple in the front...
author
Samuel Antao
<sfantao@us.ibm.com>
Sat, 16 Jul 2016 00:15:56 +0000
(
00:15
+0000)
committer
Samuel Antao
<sfantao@us.ibm.com>
Sat, 16 Jul 2016 00:15:56 +0000
(
00:15
+0000)
llvm-svn: 275651
clang/lib/Driver/Tools.cpp
patch
|
blob
|
history
diff --git
a/clang/lib/Driver/Tools.cpp
b/clang/lib/Driver/Tools.cpp
index
df4a996
..
0e5471f
100644
(file)
--- a/
clang/lib/Driver/Tools.cpp
+++ b/
clang/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<Action::OFK_Host>()
->getTriple()