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:
parent
bc6ef4c191
commit
b55a78e553
@ -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");
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user