mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-19 11:02:59 +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)) {
|
||||
assert(DestBits == PTy->getBitWidth() &&
|
||||
"Casting vector to integer of different width");
|
||||
PTy = NULL;
|
||||
return BitCast; // Same size, no-op cast
|
||||
} else {
|
||||
assert(isa<PointerType>(SrcTy) &&
|
||||
@ -2195,7 +2196,8 @@ CastInst::getCastOpcode(
|
||||
} else if (const VectorType *PTy = dyn_cast<VectorType>(SrcTy)) {
|
||||
assert(DestBits == PTy->getBitWidth() &&
|
||||
"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 {
|
||||
assert(0 && "Casting pointer or non-first class to float");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user