Fix InstCombine/2003-11-03-VarargsCallBug.ll
authorChris Lattner <sabre@nondot.org>
Mon, 3 Nov 2003 18:44:58 +0000 (18:44 +0000)
committerChris Lattner <sabre@nondot.org>
Mon, 3 Nov 2003 18:44:58 +0000 (18:44 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9681 91177308-0d34-0410-b5e6-96231b3b80d8

lib/VMCore/Type.cpp

index b92c5dcaf5457e513b1f3d8bad4ded4b4a4b65b6..ed468022cb83647a1c7347c1ad495dcc6664d23e 100644 (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
   }