Fix a typo that led to a failure to correctly verify bitcast instructions.

Patch by Stephen Hines!

llvm-svn: 161921
This commit is contained in:
Nick Lewycky 2012-08-15 02:37:07 +00:00
parent beb386aba8
commit 58564d5aa6
1 changed files with 1 additions and 1 deletions

View File

@ -1093,7 +1093,7 @@ void Verifier::visitBitCastInst(BitCastInst &I) {
// 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);