llvm.org GIT mirror llvm / 2b8f6ae
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 Joey Gouly 7 years ago
3 changed file(s) with 10 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
179179 if (DATy->getNumElements() != cast(SrcTy)->getNumElements())
180180 return false;
181181 } else if (VectorType *DVTy = dyn_cast(DstTy)) {
182 if (DVTy->getNumElements() != cast<ArrayType>(SrcTy)->getNumElements())
182 if (DVTy->getNumElements() != cast<VectorType>(SrcTy)->getNumElements())
183183 return false;
184184 }
185185
1111
1212 ; The uses of intlist in the other file should be remapped.
1313 ; CHECK-NOT: {{%intlist.[0-9]}}
14
15 ; CHECK: %VecSize = type { <5 x i32> }
16 ; CHECK: %VecSize.{{[0-9]}} = type { <10 x i32> }
17 %VecSize = type { <5 x i32> }
1418
1519 %Struct1 = type opaque
1620 @S1GV = external global %Struct1*
9296 define void @testIntern() {
9397 ret void
9498 }
99
100 declare void @VecSizeCrash(%VecSize)
66
77 %Ty1 = type { %Ty2* }
88 %Ty2 = type opaque
9
10 %VecSize = type { <10 x i32> }
911
1012 @GVTy1 = global %Ty1* null
1113 @GVTy2 = external global %Ty2*
5254 ret void
5355 }
5456
57 declare void @VecSizeCrash1(%VecSize)