diff options
author | David Blaikie <dblaikie@gmail.com> | 2012-10-18 16:57:32 +0000 |
---|---|---|
committer | David Blaikie <dblaikie@gmail.com> | 2012-10-18 16:57:32 +0000 |
commit | 3d5cf5e0483f538c27016ef3e064536058d5605e (patch) | |
tree | 28fad1ff108358312f81b669731613d614aa75b3 /lib/Sema/SemaCodeComplete.cpp | |
parent | 7fd00b153c991fbe30f9fa76391d2ad9fa1d349d (diff) |
PR14021: Copy lookup results to ensure safe iteration.
Within the body of the loop the underlying map may be modified via
Sema::AddOverloadCandidate
-> Sema::CompareReferenceRelationship
-> Sema::RequireCompleteType
to avoid the use of invalid iterators the sequence is copied first.
A reliable, though large, test case is available - it will be reduced and
committed shortly.
Patch by Robert Muth. Review by myself, Nico Weber, and Rafael Espindola.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@166188 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/SemaCodeComplete.cpp')
0 files changed, 0 insertions, 0 deletions