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:
Joey Gouly
2013-01-10 10:49:36 +00:00
parent 1d505a33f9
commit 2b8f6ae6b7
3 changed files with 10 additions and 1 deletions

View File

@ -180,7 +180,7 @@ bool TypeMapTy::areTypesIsomorphic(Type *DstTy, Type *SrcTy) {
if (DATy->getNumElements() != cast<ArrayType>(SrcTy)->getNumElements())
return false;
} else if (VectorType *DVTy = dyn_cast<VectorType>(DstTy)) {
if (DVTy->getNumElements() != cast<ArrayType>(SrcTy)->getNumElements())
if (DVTy->getNumElements() != cast<VectorType>(SrcTy)->getNumElements())
return false;
}