OSDN Git Service

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)
commita61a99b62e84f99229d51fbe1980ada2f823b235
tree04ec1cde376cf6893085f467fa58b21e12f41ce1
parentc8d2e3b5cbd9936029e124c6ee3ea1d08574f10b
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.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@267332 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Bitcode/Reader/BitcodeReader.cpp
test/Bitcode/dityperefs-3.8.ll
test/Bitcode/dityperefs-3.8.ll.bc