parent
edbf52c7f9
commit
70af97db27
|
@ -130,13 +130,13 @@ public:
|
||||||
// to the new type.
|
// to the new type.
|
||||||
//
|
//
|
||||||
virtual void refineAbstractType(const DerivedType *OldTy, const Type *NewTy) {
|
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
|
// Check to see if the type just became concrete. If so, we have to
|
||||||
// removeUser to get off its AbstractTypeUser list
|
// removeUser to get off its AbstractTypeUser list
|
||||||
removeUserFromConcrete();
|
removeUserFromConcrete();
|
||||||
|
|
||||||
if (OldTy != NewTy)
|
if ((const Type*)OldTy != NewTy)
|
||||||
PATypeHandle<TypeSC>::operator=((const TypeSC*)NewTy);
|
PATypeHandle<TypeSC>::operator=((const TypeSC*)NewTy);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue