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 | 2ec97a2b9c05a69a775bff4508d35e9654ddf626 (patch) | |
| tree | 0a2d930cd94a7475a0ae13630752ce32ee8ae202 | |
| parent | 446ad50c30fc7380fd0409855c86d3b8fde88b01 (diff) | |
| download | bcm5719-llvm-2ec97a2b9c05a69a775bff4508d35e9654ddf626.tar.gz bcm5719-llvm-2ec97a2b9c05a69a775bff4508d35e9654ddf626.zip | |
Convert a runtime check into an assertion
llvm-svn: 772
| -rw-r--r-- | llvm/lib/VMCore/SymbolTable.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/llvm/lib/VMCore/SymbolTable.cpp b/llvm/lib/VMCore/SymbolTable.cpp index 09465305e65..4317968d4cd 100644 --- a/llvm/lib/VMCore/SymbolTable.cpp +++ b/llvm/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 << ": " |

