]> granicus.if.org Git - clang/commit
Update identifiers as needed when loading macros from serialized ASTs.
authorSean Callanan <scallanan@apple.com>
Sat, 14 May 2016 06:24:14 +0000 (06:24 +0000)
committerSean Callanan <scallanan@apple.com>
Sat, 14 May 2016 06:24:14 +0000 (06:24 +0000)
commit43f3c2698df5a8ecd2efe4e039d5b29b0b47125d
tree3939b07367dccd6725fd9a60b0e336a36adcbf2b
parent43382e109c4b3a6ea809a241b79d56e0a14d3ff4
Update identifiers as needed when loading macros from serialized ASTs.

This is essential for iterating across macros properly, which LLDB does when
loading macros from modules.  A naiver version of this patch (without the
conditional) caused assertion failures in the testsuite, but this version should
be safe.

Thanks to Ben Langmuir for the refinement that made this work.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@269554 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Serialization/ASTReader.cpp