commit | 6320064d0c60fa8683f5623881c9394fd4aa7689 | [log] [tgz] |
---|---|---|
author | Douglas Gregor <dgregor@apple.com> | Mon Aug 30 16:49:28 2010 +0000 |
committer | Douglas Gregor <dgregor@apple.com> | Mon Aug 30 16:49:28 2010 +0000 |
tree | f6a4fd62d9b9b3ea7d8ad507d16cabf5a9427fc7 | |
parent | e2248be8746e0ebb01e9a3b823bc0e129283bef4 [diff] |
Heap-allocate the attribute vectors in ASTContext::DeclAttrs. Otherwise, iterators will go stale when the DenseMap reallocates, which can cause crashes when, e.g., looping over the attributes in a template to instantiate them and add the results to the instantiation of that template. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@112488 91177308-0d34-0410-b5e6-96231b3b80d8