Fix an iterator invalidation issue: deserializing a key function can write to
authorRichard Smith <richard-llvm@metafoo.co.uk>
Mon, 7 Jul 2014 06:38:20 +0000 (06:38 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Mon, 7 Jul 2014 06:38:20 +0000 (06:38 +0000)
commita9a1c68a1bcba94f8d5c6cf5ea5619b0e2eedfce
tree9960c190d3d42c07bfb00db452e60687b3784cd9
parentf456e442114973b8f0866f88c694bf0b6697a7ca
Fix an iterator invalidation issue: deserializing a key function can write to
the key functions table. Don't hold references to anything within that table
across such an access.

llvm-svn: 212437
clang/lib/AST/RecordLayoutBuilder.cpp
clang/lib/Serialization/ASTReaderDecl.cpp
clang/test/PCH/cxx-key-functions.cpp [new file with mode: 0644]