mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-02 07:11:49 +00:00
Add casts
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1328 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
3113375f90
commit
6fa90497b0
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user