Patch by Stephen Hines!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@161921
91177308-0d34-0410-b5e6-
96231b3b80d8
// BitCast implies a no-op cast of type only. No bits change.
// However, you can't cast pointers to anything but pointers.
- Assert1(DestTy->isPointerTy() == DestTy->isPointerTy(),
+ Assert1(SrcTy->isPointerTy() == DestTy->isPointerTy(),
"Bitcast requires both operands to be pointer or neither", &I);
Assert1(SrcBitSize == DestBitSize, "Bitcast requires types of same width",&I);