Fix PR344: the incorrect remove was being used.
authorChris Lattner <sabre@nondot.org>
Wed, 26 May 2004 17:20:52 +0000 (17:20 +0000)
committerChris Lattner <sabre@nondot.org>
Wed, 26 May 2004 17:20:52 +0000 (17:20 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13790 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/CBackend/CBackend.cpp
lib/Target/CBackend/Writer.cpp

index dd133c9cbf973908e84d671054677a4eda82a711..491b3484119acf839ea4af83ae3c8a27de5b2e3d 100644 (file)
@@ -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);
     }
index dd133c9cbf973908e84d671054677a4eda82a711..491b3484119acf839ea4af83ae3c8a27de5b2e3d 100644 (file)
@@ -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);
     }