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)
commit4381284cf88991a0971886daa914225539c570e5
treeccda99d3e7dcf1c5dbe5ee509ceb96851552677b
parente8315919f02c3e94bf701c86180b8da723cafcb7
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.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@255157 91177308-0d34-0410-b5e6-96231b3b80d8
lib/IR/Constants.cpp
test/Transforms/ConstProp/insertvalue.ll
unittests/IR/ConstantsTest.cpp