mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-25 16:24:23 +00:00
Fix a copy/paste error in the IR Linker, casting an ArrayType instead of a VectorType.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@172054 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -180,7 +180,7 @@ bool TypeMapTy::areTypesIsomorphic(Type *DstTy, Type *SrcTy) {
|
|||||||
if (DATy->getNumElements() != cast<ArrayType>(SrcTy)->getNumElements())
|
if (DATy->getNumElements() != cast<ArrayType>(SrcTy)->getNumElements())
|
||||||
return false;
|
return false;
|
||||||
} else if (VectorType *DVTy = dyn_cast<VectorType>(DstTy)) {
|
} else if (VectorType *DVTy = dyn_cast<VectorType>(DstTy)) {
|
||||||
if (DVTy->getNumElements() != cast<ArrayType>(SrcTy)->getNumElements())
|
if (DVTy->getNumElements() != cast<VectorType>(SrcTy)->getNumElements())
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -13,6 +13,10 @@
|
|||||||
; The uses of intlist in the other file should be remapped.
|
; The uses of intlist in the other file should be remapped.
|
||||||
; CHECK-NOT: {{%intlist.[0-9]}}
|
; CHECK-NOT: {{%intlist.[0-9]}}
|
||||||
|
|
||||||
|
; CHECK: %VecSize = type { <5 x i32> }
|
||||||
|
; CHECK: %VecSize.{{[0-9]}} = type { <10 x i32> }
|
||||||
|
%VecSize = type { <5 x i32> }
|
||||||
|
|
||||||
%Struct1 = type opaque
|
%Struct1 = type opaque
|
||||||
@S1GV = external global %Struct1*
|
@S1GV = external global %Struct1*
|
||||||
|
|
||||||
@ -93,3 +97,5 @@ define internal void @Testintern() {
|
|||||||
define void @testIntern() {
|
define void @testIntern() {
|
||||||
ret void
|
ret void
|
||||||
}
|
}
|
||||||
|
|
||||||
|
declare void @VecSizeCrash(%VecSize)
|
||||||
|
@ -8,6 +8,8 @@
|
|||||||
%Ty1 = type { %Ty2* }
|
%Ty1 = type { %Ty2* }
|
||||||
%Ty2 = type opaque
|
%Ty2 = type opaque
|
||||||
|
|
||||||
|
%VecSize = type { <10 x i32> }
|
||||||
|
|
||||||
@GVTy1 = global %Ty1* null
|
@GVTy1 = global %Ty1* null
|
||||||
@GVTy2 = external global %Ty2*
|
@GVTy2 = external global %Ty2*
|
||||||
|
|
||||||
@ -53,3 +55,4 @@ define internal void @testIntern() {
|
|||||||
ret void
|
ret void
|
||||||
}
|
}
|
||||||
|
|
||||||
|
declare void @VecSizeCrash1(%VecSize)
|
||||||
|
Reference in New Issue
Block a user