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 | e2cd13906e35e00fab2c7d061b13778ae27b635d (patch) | |
| tree | 2bbe05e6a648c1eacfa72202ca03a70d6b4c35af /llvm/lib | |
| parent | 9ff96e6f9ba630daf661d6aa112d57177532d0a7 (diff) | |
| download | bcm5719-llvm-e2cd13906e35e00fab2c7d061b13778ae27b635d.tar.gz bcm5719-llvm-e2cd13906e35e00fab2c7d061b13778ae27b635d.zip | |
Ensure sys::getProcessTriple always uses a normalized triple. Patch by
Thomas B. Jablin, from PR16636.
llvm-svn: 186501
Diffstat (limited to 'llvm/lib')
| -rw-r--r-- | llvm/lib/Support/Host.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Support/Host.cpp b/llvm/lib/Support/Host.cpp index 20942a56bbc..40e7a494fdc 100644 --- a/llvm/lib/Support/Host.cpp +++ b/llvm/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(); |

