From e8a2742352fa358159577b01ead8f508c0c7a376 Mon Sep 17 00:00:00 2001 From: Duncan Sands Date: Wed, 17 Jul 2013 11:01:05 +0000 Subject: 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 --- lib/Support/Host.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') 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 &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(); -- cgit v1.1