diff options
author | Craig Topper <craig.topper@intel.com> | 2018-03-06 22:45:31 +0000 |
---|---|---|
committer | Craig Topper <craig.topper@intel.com> | 2018-03-06 22:45:31 +0000 |
commit | 55ad3299d40be274aa565d02630bd513bcb3495f (patch) | |
tree | 2b7ec954f25052f77dde6b478a65b7d1790b90ef /llvm/lib/Support/Host.cpp | |
parent | 4428e90efa31df7b288b170330dc7ec941ea72f8 (diff) | |
download | bcm5719-llvm-55ad3299d40be274aa565d02630bd513bcb3495f.tar.gz bcm5719-llvm-55ad3299d40be274aa565d02630bd513bcb3495f.zip |
[X86] Fix a typo in Host.cpp that causes us to misidentify KNL, Silvermont, Goldmont and probably other CPUs for -march=native
I think most of the Intel Core CPUs and recent AMD CPUs are unaffected. All the CPUs that have a "subtype" should work. The ones that were broken are the ones that are a "type" with no subtypes.
Fixes PR36619.
llvm-svn: 326840
Diffstat (limited to 'llvm/lib/Support/Host.cpp')
-rw-r--r-- | llvm/lib/Support/Host.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Support/Host.cpp b/llvm/lib/Support/Host.cpp index 7945aa5e525..0f3be408fa6 100644 --- a/llvm/lib/Support/Host.cpp +++ b/llvm/lib/Support/Host.cpp @@ -1009,7 +1009,7 @@ StringRef sys::getHostCPUName() { #include "llvm/Support/X86TargetParser.def" // Now check types. -#define X86_CPU_SUBTYPE(ARCHNAME, ENUM) \ +#define X86_CPU_TYPE(ARCHNAME, ENUM) \ if (Type == X86::ENUM) \ return ARCHNAME; #include "llvm/Support/X86TargetParser.def" |