[PDB] Fix another bug in globals stream name lookup.
authorZachary Turner <zturner@google.com>
Tue, 9 Oct 2018 21:19:03 +0000 (21:19 +0000)
committerZachary Turner <zturner@google.com>
Tue, 9 Oct 2018 21:19:03 +0000 (21:19 +0000)
commit5989281cf3af52fc07ad458297e70f559db02de7
tree518abc70020754a438f1f9ab92c921f4bd178968
parent5e49846ca60ceafad396f30fd545221199ca0af7
[PDB] Fix another bug in globals stream name lookup.

When we're on the last bucket the computation is tricky.
We were failing when the last bucket contained multiple
matches.  Added a new test for this.

llvm-svn: 344081
llvm/lib/DebugInfo/PDB/Native/GlobalsStream.cpp
llvm/test/DebugInfo/PDB/Inputs/global-name-lookup.cpp [new file with mode: 0644]
llvm/test/DebugInfo/PDB/Inputs/global-name-lookup.pdb [new file with mode: 0644]
llvm/test/DebugInfo/PDB/pdbdump-global-lookup.test