]> granicus.if.org Git - clang/commit
Don't add ID mappings for offsets with no entities in a module
authorBen Langmuir <blangmuir@apple.com>
Mon, 20 Oct 2014 16:27:30 +0000 (16:27 +0000)
committerBen Langmuir <blangmuir@apple.com>
Mon, 20 Oct 2014 16:27:30 +0000 (16:27 +0000)
commit6894808d29b9f8499dbb219a1f17a518f69d8b0c
tree03941e5140b21b2737c8ee2a91726df47be6052f
parent7664f3ab9ad5b25e4bdcbbee083aa999a353670a
Don't add ID mappings for offsets with no entities in a module

This is a better fix for 'duplicate key' problems in module continuous
range maps (vs what I added in r215810) by not adding any mappings at
all when there are no local entities. Now it also covers selectors,
which were not always being bumped because the record SELECTOR_OFFSET is
not always emitted.  I'll back out most of r215810 in a future commit,
since it should no longer be needed.

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