mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-09 11:25:55 +00:00
This checkin fixes the bug described in:
test/Regression/Assembler/2002-01-24-BadSymbolTableAssert.ll git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1583 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -283,8 +283,7 @@ void SymbolTable::refineAbstractType(const DerivedType *OldType,
|
||||
}
|
||||
|
||||
TPI = find(Type::TypeTy);
|
||||
assert(TPI != end() &&"Type plane not in symbol table but we contain types!");
|
||||
|
||||
if (TPI != end()) {
|
||||
// Loop over all of the types in the symbol table, replacing any references to
|
||||
// OldType with references to NewType. Note that there may be multiple
|
||||
// occurances, and although we only need to remove one at a time, it's faster
|
||||
@@ -306,6 +305,7 @@ void SymbolTable::refineAbstractType(const DerivedType *OldType,
|
||||
cast<const DerivedType>(NewType)->addAbstractTypeUser(this);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user