[llvm-commits] [llvm] r58057 - /llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
Dale Johannesen
dalej at apple.com
Thu Oct 23 18:06:58 PDT 2008
Author: johannes
Date: Thu Oct 23 20:06:58 2008
New Revision: 58057
URL: http://llvm.org/viewvc/llvm-project?rev=58057&view=rev
Log:
Initialize uninitialized variable.
Modified:
llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
Modified: llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAG.cpp?rev=58057&r1=58056&r2=58057&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAG.cpp (original)
+++ llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAG.cpp Thu Oct 23 20:06:58 2008
@@ -4783,7 +4783,7 @@
/// getMemOperand - Return a MachineMemOperand object describing the memory
/// reference performed by this memory reference.
MachineMemOperand MemSDNode::getMemOperand() const {
- int Flags;
+ int Flags = 0;
if (isa<LoadSDNode>(this))
Flags = MachineMemOperand::MOLoad;
else if (isa<StoreSDNode>(this))
More information about the llvm-commits
mailing list