summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
diff options
context:
space:
mode:
authorDale Johannesen <dalej@apple.com>2008-10-24 01:06:58 +0000
committerDale Johannesen <dalej@apple.com>2008-10-24 01:06:58 +0000
commit8b531d2754ce2d15916969f712589571407dc26b (patch)
treeb8c8aaca6ba565b3328d5c4fd4bf77a155d61374 /llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
parent6779f893b9b1cd2d88e58a062cfa9a5e6a8c7fee (diff)
downloadbcm5719-llvm-8b531d2754ce2d15916969f712589571407dc26b.tar.gz
bcm5719-llvm-8b531d2754ce2d15916969f712589571407dc26b.zip
Initialize uninitialized variable.
llvm-svn: 58057
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp')
-rw-r--r--llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
index 758f112f78c..36c1048dfd2 100644
--- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
+++ b/llvm/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<LoadSDNode>(this))
Flags = MachineMemOperand::MOLoad;
else if (isa<StoreSDNode>(this))
OpenPOWER on IntegriCloud