diff options
author | Duncan Sands <baldrick@free.fr> | 2013-07-17 11:01:05 +0000 |
---|---|---|
committer | Duncan Sands <baldrick@free.fr> | 2013-07-17 11:01:05 +0000 |
commit | e8a2742352fa358159577b01ead8f508c0c7a376 (patch) | |
tree | 1078215550c572fb5db75d19a3d58f29c3cb689c /lib/Support | |
parent | dcc4207a00b31687018f87de75846579bbdb9c77 (diff) | |
download | external_llvm-e8a2742352fa358159577b01ead8f508c0c7a376.zip external_llvm-e8a2742352fa358159577b01ead8f508c0c7a376.tar.gz external_llvm-e8a2742352fa358159577b01ead8f508c0c7a376.tar.bz2 |
Ensure sys::getProcessTriple always uses a normalized triple. Patch by
Thomas B. Jablin, from PR16636.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@186501 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Support')
-rw-r--r-- | lib/Support/Host.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Support/Host.cpp b/lib/Support/Host.cpp index 20942a5..40e7a49 100644 --- 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(); |