From c72114ca728dcffb9fb92cc63c9fd71b9be58645 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Sat, 27 Apr 2002 02:26:03 +0000 Subject: [PATCH] Trivial simplification of code git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2325 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/VMCore/Type.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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 } -- 2.34.1