[X86] clzero check in getHostCPUFeatures should use getX86CpuIDAndInfo not getX86CpuIDAndInfoEx.

This leaf doesn't take an additional argument.

llvm-svn: 318634
This commit is contained in:
Craig Topper 2017-11-19 23:49:19 +00:00
parent 1af7e4424f
commit dcd69797a6
1 changed files with 1 additions and 1 deletions

View File

@ -1228,7 +1228,7 @@ bool sys::getHostCPUFeatures(StringMap<bool> &Features) {
Features["mwaitx"] = HasExtLeaf1 && ((ECX >> 29) & 1);
bool HasExtLeaf8 = MaxExtLevel >= 0x80000008 &&
!getX86CpuIDAndInfoEx(0x80000008,0x0, &EAX, &EBX, &ECX, &EDX);
!getX86CpuIDAndInfo(0x80000008, &EAX, &EBX, &ECX, &EDX);
Features["clzero"] = HasExtLeaf8 && ((EBX >> 0) & 1);
bool HasLeaf7 =