mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-12 17:32:19 +00:00
Trivial simplification of code
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2325 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
95b876e0b6
commit
c72114ca72
@ -103,8 +103,7 @@ bool Type::isLosslesslyConvertableTo(const Type *Ty) const {
|
|||||||
case Type::ULongTyID:
|
case Type::ULongTyID:
|
||||||
case Type::LongTyID:
|
case Type::LongTyID:
|
||||||
case Type::PointerTyID:
|
case Type::PointerTyID:
|
||||||
return Ty == Type::ULongTy || Ty == Type::LongTy ||
|
return Ty == Type::ULongTy || Ty == Type::LongTy || isa<PointerType>(Ty);
|
||||||
Ty->getPrimitiveID() == Type::PointerTyID;
|
|
||||||
default:
|
default:
|
||||||
return false; // Other types have no identity values
|
return false; // Other types have no identity values
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user