[llvm-commits] CVS: llvm/lib/Analysis/DataStructure/DataStructure.cpp
Chris Lattner
lattner at cs.uiuc.edu
Fri Nov 8 18:50:00 PST 2002
Changes in directory llvm/lib/Analysis/DataStructure:
DataStructure.cpp updated: 1.54 -> 1.55
---
Log message:
Fix warning & release build
---
Diffs of the changes:
Index: llvm/lib/Analysis/DataStructure/DataStructure.cpp
diff -u llvm/lib/Analysis/DataStructure/DataStructure.cpp:1.54 llvm/lib/Analysis/DataStructure/DataStructure.cpp:1.55
--- llvm/lib/Analysis/DataStructure/DataStructure.cpp:1.54 Fri Nov 8 16:49:57 2002
+++ llvm/lib/Analysis/DataStructure/DataStructure.cpp Fri Nov 8 18:49:05 2002
@@ -245,7 +245,7 @@
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 @@
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>);
More information about the llvm-commits
mailing list