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
This commit is contained in:
Duncan Sands 2013-07-17 11:01:05 +00:00
parent dcc4207a00
commit e8a2742352

View File

@ -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();