Fix symbol table problem

llvm-svn: 4785
This commit is contained in:
Chris Lattner 2002-11-20 19:32:43 +00:00
parent 53d2de923a
commit 8016a16ed0
1 changed files with 10 additions and 11 deletions

View File

@ -266,9 +266,9 @@ void MutateStructTypes::processGlobals(Module &M) {
// Remap the symbol table to refer to the types in a nice way
//
if (SymbolTable *ST = M.getSymbolTable()) {
SymbolTable::iterator I = ST->find(Type::TypeTy);
if (I != ST->end()) { // Get the type plane for Type's
SymbolTable &ST = M.getSymbolTable();
SymbolTable::iterator I = ST.find(Type::TypeTy);
if (I != ST.end()) { // Get the type plane for Type's
SymbolTable::VarMap &Plane = I->second;
for (SymbolTable::type_iterator TI = Plane.begin(), TE = Plane.end();
TI != TE; ++TI) {
@ -278,7 +278,6 @@ void MutateStructTypes::processGlobals(Module &M) {
TI->second = (Value*)cast<Type>(ConvertType(cast<Type>(TI->second)));
}
}
}
}