[X86] Infer 64bit feature support from the CPUID results in getHostCPUFeatures.
authorCraig Topper <craig.topper@intel.com>
Mon, 24 Sep 2018 18:55:41 +0000 (18:55 +0000)
committerCraig Topper <craig.topper@intel.com>
Mon, 24 Sep 2018 18:55:41 +0000 (18:55 +0000)
commit6cdab204f098b952dec70cb34d90c482ded9fe13
tree7faf9d67de99a1844e7d29eaaa1df2947024274b
parentd32508a932ceafe070f66e8ce25f102a66f5a3e0
[X86] Infer 64bit feature support from the CPUID results in getHostCPUFeatures.

After r341022, we more strictly check the 64bit feature in X86Subtargets constructor when a 64-bit triple is used. If we don't infer this feature for autodetected CPUs we might incorrectly report an error if the CPU name wasn't autodetected to a CPU that supports 64-bit.

llvm-svn: 342914
llvm/lib/Support/Host.cpp