[llvm] r212606 - [x86] Initialize a pointer to null to fix a bug in r212602.
Chandler Carruth
chandlerc at gmail.com
Wed Jul 9 03:36:43 PDT 2014
Author: chandlerc
Date: Wed Jul 9 05:36:42 2014
New Revision: 212606
URL: http://llvm.org/viewvc/llvm-project?rev=212606&view=rev
Log:
[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.
Modified:
llvm/trunk/lib/Target/X86/X86ISelLowering.cpp
Modified: llvm/trunk/lib/Target/X86/X86ISelLowering.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/X86/X86ISelLowering.cpp?rev=212606&r1=212605&r2=212606&view=diff
==============================================================================
--- llvm/trunk/lib/Target/X86/X86ISelLowering.cpp (original)
+++ llvm/trunk/lib/Target/X86/X86ISelLowering.cpp Wed Jul 9 05:36:42 2014
@@ -20385,7 +20385,7 @@ static SDValue WidenMaskArithmetic(SDNod
// 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)
More information about the llvm-commits
mailing list