From: Dale Johannesen Date: Fri, 24 Oct 2008 01:06:58 +0000 (+0000) Subject: Initialize uninitialized variable. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=fea90880302fc7b6d588292ae0e55d33ebe80f12;p=oota-llvm.git Initialize uninitialized variable. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@58057 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/SelectionDAG/SelectionDAG.cpp b/lib/CodeGen/SelectionDAG/SelectionDAG.cpp index 758f112f78c..36c1048dfd2 100644 --- a/lib/CodeGen/SelectionDAG/SelectionDAG.cpp +++ b/lib/CodeGen/SelectionDAG/SelectionDAG.cpp @@ -4783,7 +4783,7 @@ MemSDNode::MemSDNode(unsigned Opc, SDVTList VTs, const SDValue *Ops, /// 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(this)) Flags = MachineMemOperand::MOLoad; else if (isa(this))