OSDN Git Service
(root)
/
android-x86
/
external-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
30e4179
)
X86: initialize a few subtarget variables.
author
Tim Northover
<tnorthover@apple.com>
Mon, 1 May 2017 17:50:15 +0000
(17:50 +0000)
committer
Tim Northover
<tnorthover@apple.com>
Mon, 1 May 2017 17:50:15 +0000
(17:50 +0000)
Otherwise an indeterminate value gets read, causing a bunch of UBSan failures.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@301819
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Target/X86/X86Subtarget.cpp
patch
|
blob
|
history
diff --git
a/lib/Target/X86/X86Subtarget.cpp
b/lib/Target/X86/X86Subtarget.cpp
index
b805ddf
..
82ff436
100644
(file)
--- a/
lib/Target/X86/X86Subtarget.cpp
+++ b/
lib/Target/X86/X86Subtarget.cpp
@@
-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;