[PCH/Modules] The iterator may become invalidated because a new macro can be added
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>
Wed, 16 Jan 2013 17:42:07 +0000 (17:42 +0000)
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>
Wed, 16 Jan 2013 17:42:07 +0000 (17:42 +0000)
commit8078a5a4497ee2b5a18e5694557fe61a9082755e
treef00fe68b0ace1e2fd63254603c95240ba97c81cc
parent949e82216c5c15270e5931c4d213401f9f675f2d
[PCH/Modules] The iterator may become invalidated because a new macro can be added
while deserializing a macro, make sure to copy/move what we need from it.

Fixes clang-x86_64-debian-fast bot.

llvm-svn: 172629
clang/lib/Serialization/ASTReader.cpp