From: Duncan Sands Date: Wed, 17 Jul 2013 11:01:05 +0000 (+0000) Subject: Ensure sys::getProcessTriple always uses a normalized triple. Patch by X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=e8a2742352fa358159577b01ead8f508c0c7a376;p=oota-llvm.git 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 --- diff --git a/lib/Support/Host.cpp b/lib/Support/Host.cpp index 20942a56bbc..40e7a494fdc 100644 --- a/lib/Support/Host.cpp +++ b/lib/Support/Host.cpp @@ -603,7 +603,7 @@ bool sys::getHostCPUFeatures(StringMap &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();