aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Target/CBackend
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2004-05-26 17:20:52 +0000
committerChris Lattner <sabre@nondot.org>2004-05-26 17:20:52 +0000
commit85acba6d58164109cfc90e202ef7ef00790cc6a3 (patch)
treed7116c12722b366463eab0867cc1e0ef15ebb645 /lib/Target/CBackend
parentc293cfa204c093e3e58f570acde4b202ce4b06cc (diff)
downloadexternal_llvm-85acba6d58164109cfc90e202ef7ef00790cc6a3.zip
external_llvm-85acba6d58164109cfc90e202ef7ef00790cc6a3.tar.gz
external_llvm-85acba6d58164109cfc90e202ef7ef00790cc6a3.tar.bz2
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
Diffstat (limited to 'lib/Target/CBackend')
-rw-r--r--lib/Target/CBackend/CBackend.cpp2
-rw-r--r--lib/Target/CBackend/Writer.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/Target/CBackend/CBackend.cpp b/lib/Target/CBackend/CBackend.cpp
index dd133c9..491b348 100644
--- a/lib/Target/CBackend/CBackend.cpp
+++ b/lib/Target/CBackend/CBackend.cpp
@@ -226,7 +226,7 @@ bool CBackendNameAllUsedStructs::run(Module &M) {
// If this is not used, remove it from the symbol table.
std::set<const Type *>::iterator UTI = UT.find(STy);
if (UTI == UT.end())
- MST.remove(I->first, I->second);
+ MST.remove(I->first, (Type*)I->second);
else
UT.erase(UTI);
}
diff --git a/lib/Target/CBackend/Writer.cpp b/lib/Target/CBackend/Writer.cpp
index dd133c9..491b348 100644
--- a/lib/Target/CBackend/Writer.cpp
+++ b/lib/Target/CBackend/Writer.cpp
@@ -226,7 +226,7 @@ bool CBackendNameAllUsedStructs::run(Module &M) {
// If this is not used, remove it from the symbol table.
std::set<const Type *>::iterator UTI = UT.find(STy);
if (UTI == UT.end())
- MST.remove(I->first, I->second);
+ MST.remove(I->first, (Type*)I->second);
else
UT.erase(UTI);
}