aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2002-04-05 19:53:06 +0000
committerChris Lattner <sabre@nondot.org>2002-04-05 19:53:06 +0000
commitcecb520d1ccf76f0b1c0e9c87dbcbad56f6b1e4e (patch)
tree6e7e20de8e3b9cafdab4c1ce4bdaf2b7e804773a /lib
parent3f59b7e933f920f82d02b1a413b17865152cf393 (diff)
Clean up debugging code
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2119 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r--lib/VMCore/Type.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/VMCore/Type.cpp b/lib/VMCore/Type.cpp
index 647bad09f7..c252185825 100644
--- a/lib/VMCore/Type.cpp
+++ b/lib/VMCore/Type.cpp
@@ -861,10 +861,9 @@ void DerivedType::refineAbstractTypeTo(const Type *NewType) {
#endif
User->refineAbstractType(this, NewTy);
- if (AbstractTypeUsers.size() == OldSize)
- User->refineAbstractType(this, NewTy);
-
+#ifdef DEBUG_MERGE_TYPES
if (AbstractTypeUsers.size() == OldSize) {
+ User->refineAbstractType(this, NewTy);
if (AbstractTypeUsers.back() != User)
cerr << "User changed!\n";
cerr << "Top of user list is:\n";
@@ -873,7 +872,7 @@ void DerivedType::refineAbstractTypeTo(const Type *NewType) {
cerr <<"\nOld User=\n";
User->dump();
}
-
+#endif
assert(AbstractTypeUsers.size() != OldSize &&
"AbsTyUser did not remove self from user list!");
}
@@ -922,6 +921,7 @@ void DerivedType::typeIsRefined() {
if (AbstractTypeUsers[i] != this) {
// Debugging hook
cerr << "FOUND FAILURE\n";
+ AbstractTypeUsers[i]->dump();
AbstractTypeUsers[i]->refineAbstractType(this, this);
assert(0 && "Type became concrete,"
" but it still has abstract type users hanging around!");