Update comment from a recent commit.
authorDavid Blaikie <dblaikie@gmail.com>
Tue, 6 May 2014 03:53:10 +0000 (03:53 +0000)
committerDavid Blaikie <dblaikie@gmail.com>
Tue, 6 May 2014 03:53:10 +0000 (03:53 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@208057 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/CodeGen/LexicalScopes.h

index 89e0287032d80c3c939132a3f1644a020333f861..31d40ff588cc7c1d4a69674016e18d2027c5e65f 100644 (file)
@@ -224,8 +224,8 @@ private:
 private:
   const MachineFunction *MF;
 
-  /// LexicalScopeMap - Tracks the scopes in the current function.  Owns the
-  /// contained LexicalScope*s.
+  /// LexicalScopeMap - Tracks the scopes in the current function.
+  // Use an unordered_map to ensure value pointer validity over insertion.
   std::unordered_map<const MDNode *, LexicalScope> LexicalScopeMap;
 
   /// InlinedLexicalScopeMap - Tracks inlined function scopes in current
@@ -233,7 +233,7 @@ private:
   DenseMap<DebugLoc, LexicalScope *> InlinedLexicalScopeMap;
 
   /// AbstractScopeMap - These scopes are  not included LexicalScopeMap.
-  /// AbstractScopes owns its LexicalScope*s.
+  // Use an unordered_map to ensure value pointer validity over insertion.
   std::unordered_map<const MDNode *, LexicalScope> AbstractScopeMap;
 
   /// AbstractScopesList - Tracks abstract scopes constructed while processing