Fix ptr vector inconsistency in CreatePointerCast
authorMatt Arsenault <Matthew.Arsenault@amd.com>
Wed, 31 Jul 2013 00:17:33 +0000 (00:17 +0000)
committerMatt Arsenault <Matthew.Arsenault@amd.com>
Wed, 31 Jul 2013 00:17:33 +0000 (00:17 +0000)
commit1bf0ec4e1642a532c0121de8ccc0878d6403c9d3
tree4e88f3228fce8e73c2c6e0f62041b7b2c924189a
parent9ce8b2818d0c143fd58f4772d2002a15653079dd
Fix ptr vector inconsistency in CreatePointerCast

One form would accept a vector of pointers, and the other did not.
Make both accept vectors of pointers, and add an assertion
for the number of elements.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@187464 91177308-0d34-0410-b5e6-96231b3b80d8
lib/IR/Instructions.cpp
unittests/IR/InstructionsTest.cpp