aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2007-02-07 06:28:48 +0000
committerChris Lattner <sabre@nondot.org>2007-02-07 06:28:48 +0000
commit92f5b6a78407c84e5eb18907879b16de0f33f980 (patch)
tree4846b08c0e66f909c67d20e1acd2b8e484ec2182
parentb4d8d6234541e7c58c3d4c3377abcdbcda04b4a5 (diff)
downloadexternal_llvm-92f5b6a78407c84e5eb18907879b16de0f33f980.zip
external_llvm-92f5b6a78407c84e5eb18907879b16de0f33f980.tar.gz
external_llvm-92f5b6a78407c84e5eb18907879b16de0f33f980.tar.bz2
constants can't be in the symtab anymore
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33993 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/VMCore/ValueSymbolTable.cpp12
1 files changed, 4 insertions, 8 deletions
diff --git a/lib/VMCore/ValueSymbolTable.cpp b/lib/VMCore/ValueSymbolTable.cpp
index 101212e..2f55e49 100644
--- a/lib/VMCore/ValueSymbolTable.cpp
+++ b/lib/VMCore/ValueSymbolTable.cpp
@@ -23,15 +23,11 @@ using namespace llvm;
// Class destructor
ValueSymbolTable::~ValueSymbolTable() {
#ifndef NDEBUG // Only do this in -g mode...
- bool LeftoverValues = true;
for (iterator VI = vmap.begin(), VE = vmap.end(); VI != VE; ++VI)
- if (!isa<Constant>(VI->second) ) {
- DEBUG(DOUT << "Value still in symbol table! Type = '"
- << VI->second->getType()->getDescription() << "' Name = '"
- << VI->first << "'\n");
- LeftoverValues = false;
- }
- assert(LeftoverValues && "Values remain in symbol table!");
+ DEBUG(DOUT << "Value still in symbol table! Type = '"
+ << VI->second->getType()->getDescription() << "' Name = '"
+ << VI->first << "'\n");
+ assert(vmap.empty() && "Values remain in symbol table!");
#endif
}