[llvm-commits] [llvm] r46666 - /llvm/trunk/lib/Target/X86/X86ISelLowering.cpp
Nick Lewycky
nicholas at mxc.ca
Sat Feb 2 00:29:59 PST 2008
Author: nicholas
Date: Sat Feb 2 02:29:58 2008
New Revision: 46666
URL: http://llvm.org/viewvc/llvm-project?rev=46666&view=rev
Log:
Don't use uninitialized values. Fixes vec_align.ll on X86 Linux.
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=46666&r1=46665&r2=46666&view=diff
==============================================================================
--- llvm/trunk/lib/Target/X86/X86ISelLowering.cpp (original)
+++ llvm/trunk/lib/Target/X86/X86ISelLowering.cpp Sat Feb 2 02:29:58 2008
@@ -5642,7 +5642,7 @@
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.
More information about the llvm-commits
mailing list