From: Devang Patel Date: Tue, 20 Jan 2009 00:58:55 +0000 (+0000) Subject: Do not use DenseMap because the iterator is invalidated while constructing types... X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=c2997f4a34eb544ca6ec85a5c9190feb998fc7a8;p=oota-llvm.git Do not use DenseMap because the iterator is invalidated while constructing types. After all there was a reason why std::map was used initially! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@62555 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/AsmPrinter/DwarfWriter.cpp b/lib/CodeGen/AsmPrinter/DwarfWriter.cpp index 18be9bf3b5c..65659aecc83 100644 --- a/lib/CodeGen/AsmPrinter/DwarfWriter.cpp +++ b/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 GVToDieMap; + std::map GVToDieMap; /// GVToDIEntryMap - Tracks the mapping of unit level debug informaton /// descriptors to debug information entries using a DIEntry proxy. - DenseMap GVToDIEntryMap; + std::map GVToDIEntryMap; /// Globals - A map of globally visible named entities for this unit. ///