IR: SrcTy == DstTy doesn't imply that a cast is valid
authorDavid Majnemer <david.majnemer@gmail.com>
Mon, 16 Feb 2015 09:37:35 +0000 (09:37 +0000)
committerDavid Majnemer <david.majnemer@gmail.com>
Mon, 16 Feb 2015 09:37:35 +0000 (09:37 +0000)
commit8b576a579a94501a9fb8ec3869d383999b8031f9
tree60e4bc6b20e03c4844d796970f5b6cff335e9eb1
parent7ccc34dbc163f93fb36c59c961b355c97f4455ea
IR: SrcTy == DstTy doesn't imply that a cast is valid

Cast validity depends on the cast's kind, not just its types.

llvm-svn: 229366
llvm/lib/IR/Instructions.cpp
llvm/test/Assembler/invalid_cast4.ll [new file with mode: 0644]