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:
f5a5fbd
)
[x86] Initialize a pointer to null to fix a bug in r212602.
author
Chandler Carruth
<chandlerc@gmail.com>
Wed, 9 Jul 2014 10:36:42 +0000
(10:36 +0000)
committer
Chandler Carruth
<chandlerc@gmail.com>
Wed, 9 Jul 2014 10:36:42 +0000
(10:36 +0000)
This should restore GCC hosts (which happen to put the bad stuff into
the pointer) and MSan, etc.
llvm-svn: 212606
llvm/lib/Target/X86/X86ISelLowering.cpp
patch
|
blob
|
history
diff --git
a/llvm/lib/Target/X86/X86ISelLowering.cpp
b/llvm/lib/Target/X86/X86ISelLowering.cpp
index
daf141b
..
188a0be
100644
(file)
--- a/
llvm/lib/Target/X86/X86ISelLowering.cpp
+++ b/
llvm/lib/Target/X86/X86ISelLowering.cpp
@@
-20385,7
+20385,7
@@
static SDValue WidenMaskArithmetic(SDNode *N, SelectionDAG &DAG,
// The right side has to be a 'trunc' or a constant vector.
bool RHSTrunc = N1.getOpcode() == ISD::TRUNCATE;
- ConstantSDNode *RHSConstSplat;
+ ConstantSDNode *RHSConstSplat
= nullptr
;
if (auto *RHSBV = dyn_cast<BuildVectorSDNode>(N1))
RHSConstSplat = RHSBV->getConstantSplatNode();
if (!RHSTrunc && !RHSConstSplat)