mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-28 06:32:09 +00:00
Fix InstCombine/2003-11-03-VarargsCallBug.ll
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9681 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
ab13ae8c46
commit
5bc3e31c54
@ -102,10 +102,9 @@ bool Type::isLosslesslyConvertibleTo(const Type *Ty) const {
|
||||
case Type::ShortTyID: return Ty == Type::UShortTy;
|
||||
case Type::UIntTyID: return Ty == Type::IntTy;
|
||||
case Type::IntTyID: return Ty == Type::UIntTy;
|
||||
case Type::ULongTyID:
|
||||
case Type::LongTyID:
|
||||
case Type::PointerTyID:
|
||||
return Ty == Type::ULongTy || Ty == Type::LongTy || isa<PointerType>(Ty);
|
||||
case Type::ULongTyID: return Ty == Type::LongTy;
|
||||
case Type::LongTyID: return Ty == Type::ULongTy;
|
||||
case Type::PointerTyID: return isa<PointerType>(Ty);
|
||||
default:
|
||||
return false; // Other types have no identity values
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user