IR: Change the Type::get{Array,Vector,Pointer}ElementType() functions to perform...
authorPeter Collingbourne <peter@pcc.me.uk>
Sun, 13 Nov 2016 06:58:45 +0000 (06:58 +0000)
committerPeter Collingbourne <peter@pcc.me.uk>
Sun, 13 Nov 2016 06:58:45 +0000 (06:58 +0000)
commit9d5fd4db814e661ff7acf3a9d473e9d72b5f4d93
tree40ebdafdb6f3e6697d4d1cb2c8a4dc2f85164c8c
parent0528a31ddf430bdeb1711ba930b6d530f78af3ad
IR: Change the Type::get{Array,Vector,Pointer}ElementType() functions to perform the correct type assertion.

Previously we were only asserting that the type was a sequential type.

llvm-svn: 286749
llvm/include/llvm/IR/Type.h
llvm/lib/IR/Instructions.cpp