mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-13 20:32:21 +00:00
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:
parent
dcc4207a00
commit
e8a2742352
@ -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
Block a user