forked from OSchip/llvm-project
Ensure sys::getProcessTriple always uses a normalized triple. Patch by
Thomas B. Jablin, from PR16636. llvm-svn: 186501
This commit is contained in:
parent
9ff96e6f9b
commit
e2cd13906e
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue