BitcodeReader: Fix some holes in upgrade from r267296
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>
Sun, 24 Apr 2016 06:52:01 +0000 (06:52 +0000)
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>
Sun, 24 Apr 2016 06:52:01 +0000 (06:52 +0000)
commit5892c6b94b882d10952204a67e7e44ea9c387ca5
tree6c305e34be7c011bc08783289a0619485e32d391
parentdbc981f71fa2f000c4c58b8be8e9aae9eeee0d9f
BitcodeReader: Fix some holes in upgrade from r267296

Add tests for some missing cases to bitcode upgrade in r267296.

  - DICompositeType with an 'elements:' field, which will cause it to be
    involved in a cycle after the upgrade.

  - A DIDerivedType that references a class in 'extraData:'.

I updated test/Bitcode/dityperefs-3.8.ll with the missing cases and
regenerated test/Bitcode/dityperefs-3.8.ll.bc.

llvm-svn: 267332
llvm/lib/Bitcode/Reader/BitcodeReader.cpp
llvm/test/Bitcode/dityperefs-3.8.ll
llvm/test/Bitcode/dityperefs-3.8.ll.bc