mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-21 21:29:41 +00:00
Silence unused variable warnings.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@58743 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
d91ac615e3
commit
8c3b47f623
@ -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,6 +2196,7 @@ CastInst::getCastOpcode(
|
||||
} else if (const VectorType *PTy = dyn_cast<VectorType>(SrcTy)) {
|
||||
assert(DestBits == PTy->getBitWidth() &&
|
||||
"Casting vector to floating point of different width");
|
||||
PTy = NULL;
|
||||
return BitCast; // same size, no-op cast
|
||||
} else {
|
||||
assert(0 && "Casting pointer or non-first class to float");
|
||||
|
Loading…
x
Reference in New Issue
Block a user