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:
Chris Lattner 2003-11-03 18:44:58 +00:00
parent ab13ae8c46
commit 5bc3e31c54

View File

@ -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
}