From: Chris Lattner Date: Sat, 27 Apr 2002 02:26:03 +0000 (+0000) Subject: Trivial simplification of code X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=c72114ca728dcffb9fb92cc63c9fd71b9be58645;p=oota-llvm.git Trivial simplification of code git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2325 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/VMCore/Type.cpp b/lib/VMCore/Type.cpp index d537e708838..7a17d06ff6a 100644 --- a/lib/VMCore/Type.cpp +++ b/lib/VMCore/Type.cpp @@ -103,8 +103,7 @@ bool Type::isLosslesslyConvertableTo(const Type *Ty) const { case Type::ULongTyID: case Type::LongTyID: case Type::PointerTyID: - return Ty == Type::ULongTy || Ty == Type::LongTy || - Ty->getPrimitiveID() == Type::PointerTyID; + return Ty == Type::ULongTy || Ty == Type::LongTy || isa(Ty); default: return false; // Other types have no identity values }