diff options
author | Chris Lattner <sabre@nondot.org> | 2001-10-13 06:58:56 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2001-10-13 06:58:56 +0000 |
commit | 762a2418a12087291af8b83aeb67796a828967cd (patch) | |
tree | d50882779732ee84b04ac2bbcf02123c64218073 /lib/VMCore/SymbolTable.cpp | |
parent | dd6dfbc8cc008faca03b6ac9b904f263205a418a (diff) | |
download | external_llvm-762a2418a12087291af8b83aeb67796a828967cd.zip external_llvm-762a2418a12087291af8b83aeb67796a828967cd.tar.gz external_llvm-762a2418a12087291af8b83aeb67796a828967cd.tar.bz2 |
Convert a runtime check into an assertion
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@772 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/VMCore/SymbolTable.cpp')
-rw-r--r-- | lib/VMCore/SymbolTable.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/lib/VMCore/SymbolTable.cpp b/lib/VMCore/SymbolTable.cpp index 0946530..4317968 100644 --- a/lib/VMCore/SymbolTable.cpp +++ b/lib/VMCore/SymbolTable.cpp @@ -123,11 +123,8 @@ void SymbolTable::insertEntry(const string &Name, Value *V) { const Type *VTy = V->getType(); // TODO: The typeverifier should catch this when its implemented - if (lookup(VTy, Name)) { - cerr << "SymbolTable ERROR: Name already in symbol table: '" - << Name << "' for type '" << VTy->getDescription() << "'\n"; - abort(); // TODO: REMOVE THIS - } + assert(lookup(VTy, Name) == 0 && + "SymbolTable::insertEntry - Name already in symbol table!"); #if DEBUG_SYMBOL_TABLE cerr << this << " Inserting definition: " << Name << ": " |