mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-25 00:24:26 +00:00
Introduce isOpaqueTy and use it rather than isa<OpaqueType>. Also, move some
methods to try to have the type predicates be more logically positioned. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@96349 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -159,7 +159,7 @@ static bool RecursiveResolveTypesI(const Type *DstTy, const Type *SrcTy,
|
||||
if (DstTy == SrcTy) return false; // If already equal, noop
|
||||
|
||||
// If we found our opaque type, resolve it now!
|
||||
if (isa<OpaqueType>(DstTy) || isa<OpaqueType>(SrcTy))
|
||||
if (DstTy->isOpaqueTy() || SrcTy->isOpaqueTy())
|
||||
return ResolveTypes(DstTy, SrcTy);
|
||||
|
||||
// Two types cannot be resolved together if they are of different primitive
|
||||
|
Reference in New Issue
Block a user