diff options
author | Joey Gouly <joey.gouly@arm.com> | 2013-01-10 10:49:36 +0000 |
---|---|---|
committer | Joey Gouly <joey.gouly@arm.com> | 2013-01-10 10:49:36 +0000 |
commit | 2b8f6ae6b791099ceff8ad87bcca7f165655c5c7 (patch) | |
tree | b350eb5816757951add4eec03e66af41d691e188 /lib/Linker/LinkModules.cpp | |
parent | 1d505a33f9cb77a2adb644b85136e7be64a186d9 (diff) | |
download | external_llvm-2b8f6ae6b791099ceff8ad87bcca7f165655c5c7.zip external_llvm-2b8f6ae6b791099ceff8ad87bcca7f165655c5c7.tar.gz external_llvm-2b8f6ae6b791099ceff8ad87bcca7f165655c5c7.tar.bz2 |
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
Diffstat (limited to 'lib/Linker/LinkModules.cpp')
-rw-r--r-- | lib/Linker/LinkModules.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Linker/LinkModules.cpp b/lib/Linker/LinkModules.cpp index e973919..41ec114 100644 --- a/lib/Linker/LinkModules.cpp +++ b/lib/Linker/LinkModules.cpp @@ -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; } |