X86: initialize a few subtarget variables.

Otherwise an indeterminate value gets read, causing a bunch of UBSan failures.

llvm-svn: 301819
This commit is contained in:
Tim Northover 2017-05-01 17:50:15 +00:00
parent cdcc5b61f4
commit 9bb6931c25
1 changed files with 3 additions and 0 deletions

View File

@ -290,6 +290,9 @@ void X86Subtarget::initializeEnvironment() {
HasMWAITX = false;
HasCLZERO = false;
HasMPX = false;
HasSGX = false;
HasCLFLUSHOPT = false;
HasCLWB = false;
IsBTMemSlow = false;
IsPMULLDSlow = false;
IsSHLDSlow = false;