UseListOrder: Correctly count the number of uses
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>
Sat, 16 Aug 2014 01:54:34 +0000 (01:54 +0000)
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>
Sat, 16 Aug 2014 01:54:34 +0000 (01:54 +0000)
commit1e97329f2725fb5b5e88f7be99da07da6cf9fe62
tree62f143987818b8f0d31a8d1fa8af06ce5f91da6e
parent7a5cb43115ba3c87ac04511c804d0993aa28ddc2
UseListOrder: Correctly count the number of uses

This is an off-by-one bug I found by inspection, which would only
trigger if the bitcode writer sees more uses of a `Value` than the
reader.  Since this is only relevant when an instruction gets upgraded
somehow, there unfortunately isn't a reasonable way to add test
coverage.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@215804 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Bitcode/Reader/BitcodeReader.cpp