Don't use uninitialized values. Fixes vec_align.ll on X86 Linux.
authorNick Lewycky <nicholas@mxc.ca>
Sat, 2 Feb 2008 08:29:58 +0000 (08:29 +0000)
committerNick Lewycky <nicholas@mxc.ca>
Sat, 2 Feb 2008 08:29:58 +0000 (08:29 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@46666 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/X86/X86ISelLowering.cpp

index 1093ea86121dfe5bfdd72b901e301d2fa4069c38..af993e1627c476a4b781d2c077445f7ed2885903 100644 (file)
@@ -5642,7 +5642,7 @@ static bool isConsecutiveLoad(SDNode *N, SDNode *Base, int Dist, int Size,
 static bool isBaseAlignment16(SDNode *Base, MachineFrameInfo *MFI,
                               const X86Subtarget *Subtarget) {
   GlobalValue *GV;
-  int64_t Offset;
+  int64_t Offset = 0;
   if (isGAPlusOffset(Base, GV, Offset))
     return (GV->getAlignment() >= 16 && (Offset % 16) == 0);
   // DAG combine handles the stack object case.