summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorCameron Zwarich <zwarich@apple.com>2011-03-26 04:58:50 +0000
committerCameron Zwarich <zwarich@apple.com>2011-03-26 04:58:50 +0000
commitd4174ee43ef73b290fa536cda1cacbbf17f4ae42 (patch)
tree97798f4d1511459f3a62614ab0ad0fbc1ceaf185 /llvm/lib
parentfa38bd3dfe91d4b260d9114061d73eb793e1570d (diff)
downloadbcm5719-llvm-d4174ee43ef73b290fa536cda1cacbbf17f4ae42.tar.gz
bcm5719-llvm-d4174ee43ef73b290fa536cda1cacbbf17f4ae42.zip
Fix a typo and add a test.
llvm-svn: 128331
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/Transforms/Scalar/ScalarReplAggregates.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Scalar/ScalarReplAggregates.cpp b/llvm/lib/Transforms/Scalar/ScalarReplAggregates.cpp
index c261dede922..de7bb41e7de 100644
--- a/llvm/lib/Transforms/Scalar/ScalarReplAggregates.cpp
+++ b/llvm/lib/Transforms/Scalar/ScalarReplAggregates.cpp
@@ -380,7 +380,7 @@ bool ConvertToScalarInfo::MergeInVectorType(const VectorType *VInTy,
return true;
const Type *ElementTy = cast<VectorType>(VectorTy)->getElementType();
- const Type *InElementTy = cast<VectorType>(VectorTy)->getElementType();
+ const Type *InElementTy = cast<VectorType>(VInTy)->getElementType();
// Do not allow mixed integer and floating-point accesses from vectors of
// different sizes.
OpenPOWER on IntegriCloud