diff options
author | Chris Lattner <sabre@nondot.org> | 2002-11-09 00:49:05 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2002-11-09 00:49:05 +0000 |
commit | bf10f05bf731b00979bb38f9c0c3d7a1145d8859 (patch) | |
tree | 63972af7a896d7af5b69d41f3bfebf400fa6f665 | |
parent | 1fa48e9d32cad99426478e9cdb821f56f65d3632 (diff) |
Fix warning & release build
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4648 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/Analysis/DataStructure/DataStructure.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/Analysis/DataStructure/DataStructure.cpp b/lib/Analysis/DataStructure/DataStructure.cpp index 3bb10d4184..8b43653b91 100644 --- a/lib/Analysis/DataStructure/DataStructure.cpp +++ b/lib/Analysis/DataStructure/DataStructure.cpp @@ -245,7 +245,7 @@ bool DSNode::mergeTypeInfo(const Type *NewTy, unsigned Offset) { unsigned SubTypeSize = SubType->isSized() ? TD.getTypeSize(SubType) : 0; while (SubType != NewTy) { const Type *NextSubType = 0; - unsigned NextSubTypeSize; + unsigned NextSubTypeSize = 0; switch (SubType->getPrimitiveID()) { case Type::StructTyID: NextSubType = cast<StructType>(SubType)->getElementTypes()[0]; @@ -514,11 +514,9 @@ DSGraph::~DSGraph() { ScalarMap.clear(); RetNode.setNode(0); -#ifndef NDEBUG // Drop all intra-node references, so that assertions don't fail... std::for_each(Nodes.begin(), Nodes.end(), std::mem_fun(&DSNode::dropAllReferences)); -#endif // Delete all of the nodes themselves... std::for_each(Nodes.begin(), Nodes.end(), deleter<DSNode>); |