mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-04 09:54:09 +00:00
Convert a runtime check into an assertion
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@772 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
dd6dfbc8cc
commit
762a2418a1
@ -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 << ": "
|
||||
|
Loading…
Reference in New Issue
Block a user