diff options
author | Chris Lattner <sabre@nondot.org> | 2004-05-26 17:20:52 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2004-05-26 17:20:52 +0000 |
commit | 83d067a1030f1c9319a646632e3eb4d2674bac32 (patch) | |
tree | 25251eef5ee5f41efaa26253c727352c433b69af | |
parent | 6eea16e5260f4fdf53fcda3bd3f960027834e815 (diff) | |
download | bcm5719-llvm-83d067a1030f1c9319a646632e3eb4d2674bac32.tar.gz bcm5719-llvm-83d067a1030f1c9319a646632e3eb4d2674bac32.zip |
Fix PR344: the incorrect remove was being used.
llvm-svn: 13790
-rw-r--r-- | llvm/lib/Target/CBackend/Writer.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/CBackend/Writer.cpp b/llvm/lib/Target/CBackend/Writer.cpp index dd133c9cbf9..491b3484119 100644 --- a/llvm/lib/Target/CBackend/Writer.cpp +++ b/llvm/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); } |