projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dcc4207
)
Ensure sys::getProcessTriple always uses a normalized triple. Patch by
author
Duncan Sands
<baldrick@free.fr>
Wed, 17 Jul 2013 11:01:05 +0000
(11:01 +0000)
committer
Duncan Sands
<baldrick@free.fr>
Wed, 17 Jul 2013 11:01:05 +0000
(11:01 +0000)
Thomas B. Jablin, from PR16636.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@186501
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Support/Host.cpp
patch
|
blob
|
history
diff --git
a/lib/Support/Host.cpp
b/lib/Support/Host.cpp
index 20942a56bbceba8a8f38a97ce8d498706fa546b4..40e7a494fdc6c455a08ebb84652722e1303f8023 100644
(file)
--- a/
lib/Support/Host.cpp
+++ b/
lib/Support/Host.cpp
@@
-603,7
+603,7
@@
bool sys::getHostCPUFeatures(StringMap<bool> &Features){
#endif
std::string sys::getProcessTriple() {
- Triple PT(
LLVM_HOST_TRIPLE
);
+ Triple PT(
Triple::normalize(LLVM_HOST_TRIPLE)
);
if (sizeof(void *) == 8 && PT.isArch32Bit())
PT = PT.get64BitArchVariant();