commit | c77a10fe0a40861bcb4bd2a0c170c948a57be688 | [log] [tgz] |
---|---|---|
author | Cameron Zwarich <zwarich@apple.com> | Sat Mar 26 04:58:50 2011 +0000 |
committer | Cameron Zwarich <zwarich@apple.com> | Sat Mar 26 04:58:50 2011 +0000 |
tree | d632e12c57e2de615562ffeebbe190ebf927be5c | |
parent | 32ce3f944d4d2f679e11437b2a7ceee9fcdd4395 [diff] [blame] |
Fix a typo and add a test. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@128331 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/Transforms/Scalar/ScalarReplAggregates.cpp b/lib/Transforms/Scalar/ScalarReplAggregates.cpp index c261ded..de7bb41 100644 --- a/lib/Transforms/Scalar/ScalarReplAggregates.cpp +++ b/lib/Transforms/Scalar/ScalarReplAggregates.cpp
@@ -380,7 +380,7 @@ 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.