mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-06 20:32:19 +00:00
fix a buggy assertion, CreateIntegerCast should allow
integer vectors as well as just integers. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@93126 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
0d75d874bf
commit
859c372e04
@ -2285,7 +2285,8 @@ CastInst *CastInst::CreatePointerCast(Value *S, const Type *Ty,
|
||||
CastInst *CastInst::CreateIntegerCast(Value *C, const Type *Ty,
|
||||
bool isSigned, const Twine &Name,
|
||||
Instruction *InsertBefore) {
|
||||
assert(C->getType()->isInteger() && Ty->isInteger() && "Invalid cast");
|
||||
assert(C->getType()->isIntOrIntVector() && Ty->isIntOrIntVector() &&
|
||||
"Invalid integer cast");
|
||||
unsigned SrcBits = C->getType()->getScalarSizeInBits();
|
||||
unsigned DstBits = Ty->getScalarSizeInBits();
|
||||
Instruction::CastOps opcode =
|
||||
|
Loading…
Reference in New Issue
Block a user