projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
13a3d9e
)
Add default values for member functions.
author
Richard Trieu
<rtrieu@google.com>
Tue, 21 Nov 2017 01:45:17 +0000
(
01:45
+0000)
committer
Richard Trieu
<rtrieu@google.com>
Tue, 21 Nov 2017 01:45:17 +0000
(
01:45
+0000)
Initialize IsVis2 and IsVis3 in SparcSubtarget::initializeSubtargetDependencies.
MSan detected uninitialized read of IsVis3 after r318704. Initializing the
variables to false will prevent undefined behavior.
llvm-svn: 318724
llvm/lib/Target/Sparc/SparcSubtarget.cpp
patch
|
blob
|
history
diff --git
a/llvm/lib/Target/Sparc/SparcSubtarget.cpp
b/llvm/lib/Target/Sparc/SparcSubtarget.cpp
index
f299abe
..
01545b8
100644
(file)
--- a/
llvm/lib/Target/Sparc/SparcSubtarget.cpp
+++ b/
llvm/lib/Target/Sparc/SparcSubtarget.cpp
@@
-33,6
+33,8
@@
SparcSubtarget &SparcSubtarget::initializeSubtargetDependencies(StringRef CPU,
IsLeon = false;
V8DeprecatedInsts = false;
IsVIS = false;
+ IsVIS2 = false;
+ IsVIS3 = false;
HasHardQuad = false;
UsePopc = false;
UseSoftFloat = false;