diff options
author | Chris Lattner <sabre@nondot.org> | 2001-11-26 16:46:09 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2001-11-26 16:46:09 +0000 |
commit | 6fa90497b0e838a720eb67b1a4accb6214eeb86f (patch) | |
tree | 5c11601e6dc8021ae774e2a3244db378a3ed7728 /include | |
parent | 3113375f90848ee32c990f6afbc778f198f6eca5 (diff) | |
download | external_llvm-6fa90497b0e838a720eb67b1a4accb6214eeb86f.zip external_llvm-6fa90497b0e838a720eb67b1a4accb6214eeb86f.tar.gz external_llvm-6fa90497b0e838a720eb67b1a4accb6214eeb86f.tar.bz2 |
Add casts
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1328 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r-- | include/llvm/AbstractTypeUser.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/llvm/AbstractTypeUser.h b/include/llvm/AbstractTypeUser.h index a36bd49..844d465 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<TypeSC>::operator=((const TypeSC*)NewTy); } |