diff options
| author | Devang Patel <dpatel@apple.com> | 2009-01-20 00:58:55 +0000 |
|---|---|---|
| committer | Devang Patel <dpatel@apple.com> | 2009-01-20 00:58:55 +0000 |
| commit | af6a3748c7e978e51dc02e5dda321948725c9d4e (patch) | |
| tree | 7432b4e714073d8917478ee908af18303820e90d /llvm/lib/CodeGen | |
| parent | c94134dc96f38996f80c05575d574d843cdafec2 (diff) | |
| download | bcm5719-llvm-af6a3748c7e978e51dc02e5dda321948725c9d4e.tar.gz bcm5719-llvm-af6a3748c7e978e51dc02e5dda321948725c9d4e.zip | |
Do not use DenseMap because the iterator is invalidated while constructing types. After all there was a reason why std::map was used initially!
llvm-svn: 62555
Diffstat (limited to 'llvm/lib/CodeGen')
| -rw-r--r-- | llvm/lib/CodeGen/AsmPrinter/DwarfWriter.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfWriter.cpp b/llvm/lib/CodeGen/AsmPrinter/DwarfWriter.cpp index 18be9bf3b5c..65659aecc83 100644 --- a/llvm/lib/CodeGen/AsmPrinter/DwarfWriter.cpp +++ b/llvm/lib/CodeGen/AsmPrinter/DwarfWriter.cpp @@ -779,11 +779,11 @@ private: /// GVToDieMap - Tracks the mapping of unit level debug informaton /// variables to debug information entries. - DenseMap<GlobalVariable *, DIE *> GVToDieMap; + std::map<GlobalVariable *, DIE *> GVToDieMap; /// GVToDIEntryMap - Tracks the mapping of unit level debug informaton /// descriptors to debug information entries using a DIEntry proxy. - DenseMap<GlobalVariable *, DIEntry *> GVToDIEntryMap; + std::map<GlobalVariable *, DIEntry *> GVToDIEntryMap; /// Globals - A map of globally visible named entities for this unit. /// |

