forked from OSchip/llvm-project
[x86] Initialize a pointer to null to fix a bug in r212602.
This should restore GCC hosts (which happen to put the bad stuff into the pointer) and MSan, etc. llvm-svn: 212606
This commit is contained in:
parent
f5a5fbd3f4
commit
ef5dcf571e
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue