]> granicus.if.org Git - llvm/commit
[codeview] Fix buggy BeginIndexMapSize assertion
authorReid Kleckner <rnk@google.com>
Wed, 29 Mar 2017 22:51:22 +0000 (22:51 +0000)
committerReid Kleckner <rnk@google.com>
Wed, 29 Mar 2017 22:51:22 +0000 (22:51 +0000)
commit19db4433102fbc4f8a8bcbe68fae2ee2a7c3f5ed
tree87292b3e6566bd7379d1a5e69cf00d976db19c32
parentb476db57dfffde6e059b7dc52e1440f18b78870e
[codeview] Fix buggy BeginIndexMapSize assertion

This assert is just trying to test that processing each record adds
exactly one entry to the index map. The assert logic was wrong when the
first record in the type stream was a field list.

I've simplified the code by moving the LF_FIELDLIST-specific logic into
the callback for that record type.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@299035 91177308-0d34-0410-b5e6-96231b3b80d8
lib/DebugInfo/CodeView/TypeStreamMerger.cpp
test/tools/llvm-readobj/Inputs/codeview-merging-anon.obj [new file with mode: 0644]
test/tools/llvm-readobj/codeview-merging-anon.test [new file with mode: 0644]