fix CastInst::castIsValid to reject aggregate types, fixing PR6153:
authorChris Lattner <sabre@nondot.org>
Tue, 26 Jan 2010 21:51:43 +0000 (21:51 +0000)
committerChris Lattner <sabre@nondot.org>
Tue, 26 Jan 2010 21:51:43 +0000 (21:51 +0000)
commit0b68a009f63412d4aa7c5f2d68b899e6e1dcc257
treee0bfc6be3e6222c4065a15538b37b5106d06b562
parent976ac628f48c997cb38ec7bd3c8325d265171142
fix CastInst::castIsValid to reject aggregate types, fixing PR6153:

llvm-as: t.ll:1:25: error: invalid cast opcode for cast from '[4 x i8]' to '[1 x i32]'
@x = constant [1 x i32] bitcast ([4 x i8] c"abcd" to [1 x i32])
                        ^

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@94595 91177308-0d34-0410-b5e6-96231b3b80d8
lib/VMCore/Constants.cpp
lib/VMCore/Instructions.cpp