CastInst::castIsValid should return true if the dest type is the same as
authorEvan Cheng <evan.cheng@apple.com>
Thu, 10 Jan 2013 23:22:53 +0000 (23:22 +0000)
committerEvan Cheng <evan.cheng@apple.com>
Thu, 10 Jan 2013 23:22:53 +0000 (23:22 +0000)
commit582e4f278b95d50a45c6f56e33da5e78c19afc17
tree40554ee8f36be2e6a9d9982303424bcf10e2d4e0
parent0e4776ce61092e34ac2340c60534cbed29aba87b
CastInst::castIsValid should return true if the dest type is the same as
Value's current type. The casting is trivial even for aggregate type.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@172143 91177308-0d34-0410-b5e6-96231b3b80d8
lib/IR/Instructions.cpp
test/Transforms/MergeFunc/2013-01-10-MergeFuncAssert.ll [new file with mode: 0644]