IR: Make ConstantDataArray::getFP actually return a ConstantDataArray
authorJustin Bogner <mail@justinbogner.com>
Wed, 9 Dec 2015 21:21:07 +0000 (21:21 +0000)
committerJustin Bogner <mail@justinbogner.com>
Wed, 9 Dec 2015 21:21:07 +0000 (21:21 +0000)
commitb7389d6714f8f4e46a28b90aa4a103f0586a08ab
tree27f218758cfc34dd1ba5c5969cb58f048b416d3d
parentdb51357c113ac1e65d22ac5e4199f0a7857b88bf
IR: Make ConstantDataArray::getFP actually return a ConstantDataArray

The ConstantDataArray::getFP(LLVMContext &, ArrayRef<uint16_t>)
overload has had a typo in it since it was written, where it will
create a Vector instead of an Array. This obviously doesn't work at
all, but it turns out that until r254991 there weren't actually any
callers of this overload. Fix the typo and add some test coverage.

llvm-svn: 255157
llvm/lib/IR/Constants.cpp
llvm/test/Transforms/ConstProp/insertvalue.ll
llvm/unittests/IR/ConstantsTest.cpp