mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-22 13:29:44 +00:00
Fix PR344: the incorrect remove was being used.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13790 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
c293cfa204
commit
85acba6d58
@ -226,7 +226,7 @@ bool CBackendNameAllUsedStructs::run(Module &M) {
|
|||||||
// If this is not used, remove it from the symbol table.
|
// If this is not used, remove it from the symbol table.
|
||||||
std::set<const Type *>::iterator UTI = UT.find(STy);
|
std::set<const Type *>::iterator UTI = UT.find(STy);
|
||||||
if (UTI == UT.end())
|
if (UTI == UT.end())
|
||||||
MST.remove(I->first, I->second);
|
MST.remove(I->first, (Type*)I->second);
|
||||||
else
|
else
|
||||||
UT.erase(UTI);
|
UT.erase(UTI);
|
||||||
}
|
}
|
||||||
|
@ -226,7 +226,7 @@ bool CBackendNameAllUsedStructs::run(Module &M) {
|
|||||||
// If this is not used, remove it from the symbol table.
|
// If this is not used, remove it from the symbol table.
|
||||||
std::set<const Type *>::iterator UTI = UT.find(STy);
|
std::set<const Type *>::iterator UTI = UT.find(STy);
|
||||||
if (UTI == UT.end())
|
if (UTI == UT.end())
|
||||||
MST.remove(I->first, I->second);
|
MST.remove(I->first, (Type*)I->second);
|
||||||
else
|
else
|
||||||
UT.erase(UTI);
|
UT.erase(UTI);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user