From: Chris Lattner Date: Mon, 26 Nov 2001 16:46:09 +0000 (+0000) Subject: Add casts X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=6fa90497b0e838a720eb67b1a4accb6214eeb86f;p=oota-llvm.git Add casts git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1328 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/llvm/AbstractTypeUser.h b/include/llvm/AbstractTypeUser.h index a36bd49e23b..844d465e38f 100644 --- a/include/llvm/AbstractTypeUser.h +++ b/include/llvm/AbstractTypeUser.h @@ -130,13 +130,13 @@ public: // to the new type. // virtual void refineAbstractType(const DerivedType *OldTy, const Type *NewTy) { - assert(get() == OldTy && "Can't refine to unknown value!"); + assert(get() == (const Type*)OldTy && "Can't refine to unknown value!"); // Check to see if the type just became concrete. If so, we have to // removeUser to get off its AbstractTypeUser list removeUserFromConcrete(); - if (OldTy != NewTy) + if ((const Type*)OldTy != NewTy) PATypeHandle::operator=((const TypeSC*)NewTy); }