Bitcode: Fix reading and writing of ConstantDataVectors of halfs
authorJustin Bogner <mail@justinbogner.com>
Wed, 6 Jan 2016 22:31:32 +0000 (22:31 +0000)
committerJustin Bogner <mail@justinbogner.com>
Wed, 6 Jan 2016 22:31:32 +0000 (22:31 +0000)
In r254991 I allowed ConstantDataVectors to contain elements of
HalfTy, but I missed updating the bitcode reader and writer to handle
this, so now we crash if we try to emit bitcode on programs that have
constant vectors of half.

This fixes the issue and adds test coverage for reading and writing
constant sequences in bitcode.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@256982 91177308-0d34-0410-b5e6-96231b3b80d8


No differences found