1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-19 19:12:56 +02:00

Silence unused variable warnings.

llvm-svn: 58743
This commit is contained in:
Devang Patel 2008-11-05 01:37:40 +00:00
parent bc6ef4c191
commit b55a78e553

View File

@ -2172,6 +2172,7 @@ CastInst::getCastOpcode(
} else if (const VectorType *PTy = dyn_cast<VectorType>(SrcTy)) { } else if (const VectorType *PTy = dyn_cast<VectorType>(SrcTy)) {
assert(DestBits == PTy->getBitWidth() && assert(DestBits == PTy->getBitWidth() &&
"Casting vector to integer of different width"); "Casting vector to integer of different width");
PTy = NULL;
return BitCast; // Same size, no-op cast return BitCast; // Same size, no-op cast
} else { } else {
assert(isa<PointerType>(SrcTy) && assert(isa<PointerType>(SrcTy) &&
@ -2195,7 +2196,8 @@ CastInst::getCastOpcode(
} else if (const VectorType *PTy = dyn_cast<VectorType>(SrcTy)) { } else if (const VectorType *PTy = dyn_cast<VectorType>(SrcTy)) {
assert(DestBits == PTy->getBitWidth() && assert(DestBits == PTy->getBitWidth() &&
"Casting vector to floating point of different width"); "Casting vector to floating point of different width");
return BitCast; // same size, no-op cast PTy = NULL;
return BitCast; // same size, no-op cast
} else { } else {
assert(0 && "Casting pointer or non-first class to float"); assert(0 && "Casting pointer or non-first class to float");
} }