]> granicus.if.org Git - clang/commit
Copy the decls returned by DeclContext::lookup_result to a
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>
Tue, 13 Nov 2012 05:07:23 +0000 (05:07 +0000)
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>
Tue, 13 Nov 2012 05:07:23 +0000 (05:07 +0000)
commit8682b93b3491facc9a42eb87b78bb9d8c18a0739
tree2510346bd1133da1a698e10c9b829bd897e19357
parentcbf5f60996fa2bd0ecd779b1472dc5cbad3ca464
Copy the decls returned by DeclContext::lookup_result to a
new container so we can safely iterate over them.

The container holding the lookup decls can under certain conditions
be changed while iterating (e.g. because of deserialization).

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@167816 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Sema/SemaInit.cpp
test/PCH/crash-12631281.cpp [new file with mode: 0644]