mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-10 13:51:37 +00:00
Fix cut-n-pasto.
llvm-svn: 69816
This commit is contained in:
parent
9d99a33f27
commit
7daece3796
@ -94,8 +94,8 @@ Value *SCEVExpander::InsertCastOfTo(Instruction::CastOps opcode, Value *V,
|
||||
Value *SCEVExpander::InsertNoopCastOfTo(Value *V, const Type *Ty) {
|
||||
Instruction::CastOps Op = CastInst::getCastOpcode(V, false, Ty, false);
|
||||
assert((Op == Instruction::BitCast ||
|
||||
Op == Instruction::Instruction::PtrToInt ||
|
||||
Op == Instruction::Instruction::IntToPtr) &&
|
||||
Op == Instruction::PtrToInt ||
|
||||
Op == Instruction::IntToPtr) &&
|
||||
"InsertNoopCastOfTo cannot perform non-noop casts!");
|
||||
assert(SE.getTypeSizeInBits(V->getType()) == SE.getTypeSizeInBits(Ty) &&
|
||||
"InsertNoopCastOfTo cannot change sizes!");
|
||||
|
Loading…
Reference in New Issue
Block a user