[llvm] a5e10e2 - Add missed Darwin/i386 for `withHostArch` (#67617)
via llvm-commits
llvm-commits at lists.llvm.org
Wed Sep 27 17:15:01 PDT 2023
Author: Kirill A. Korinsky
Date: 2023-09-27T17:14:57-07:00
New Revision: a5e10e248efc72e7909e4067060e89c35a456a18
URL: https://github.com/llvm/llvm-project/commit/a5e10e248efc72e7909e4067060e89c35a456a18
DIFF: https://github.com/llvm/llvm-project/commit/a5e10e248efc72e7909e4067060e89c35a456a18.diff
LOG: Add missed Darwin/i386 for `withHostArch` (#67617)
This regression was introduced at LLVM-17 via
dc078e6eaacff66596fac76b6104aa504f77d45d
Added:
Modified:
llvm/lib/TargetParser/Host.cpp
Removed:
################################################################################
diff --git a/llvm/lib/TargetParser/Host.cpp b/llvm/lib/TargetParser/Host.cpp
index cdb1f72ae39b9fc..436a5eb04c8d340 100644
--- a/llvm/lib/TargetParser/Host.cpp
+++ b/llvm/lib/TargetParser/Host.cpp
@@ -1935,6 +1935,9 @@ static Triple withHostArch(Triple T) {
#elif defined(__x86_64__)
T.setArch(Triple::x86_64);
T.setArchName("x86_64");
+#elif defined(__i386__)
+ T.setArch(Triple::x86);
+ T.setArchName("i386");
#elif defined(__powerpc__)
T.setArch(Triple::ppc);
T.setArchName("powerpc");
More information about the llvm-commits
mailing list