diff options
author | Cameron Zwarich <zwarich@apple.com> | 2011-06-14 06:33:51 +0000 |
---|---|---|
committer | Cameron Zwarich <zwarich@apple.com> | 2011-06-14 06:33:51 +0000 |
commit | 5b93d3ca6f9c6e81924063abb1487598906dcdab (patch) | |
tree | 4ff6d7a689d18d043cd13e347eca3b01a85d6b93 | |
parent | f5b5c5156c0ac6250d2980f51e47145096851d6f (diff) |
Be more obvious about what is being tested.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@132982 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/Transforms/Scalar/ScalarReplAggregates.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Transforms/Scalar/ScalarReplAggregates.cpp b/lib/Transforms/Scalar/ScalarReplAggregates.cpp index c0349a16f8..beef127ef9 100644 --- a/lib/Transforms/Scalar/ScalarReplAggregates.cpp +++ b/lib/Transforms/Scalar/ScalarReplAggregates.cpp @@ -300,7 +300,8 @@ AllocaInst *ConvertToScalarInfo::TryConvert(AllocaInst *AI) { // we just get a lot of insert/extracts. If at least one vector is // involved, then we probably really do have a union of vector/array. const Type *NewTy; - if (VectorTy && ScalarKind != ImplicitVector) { + if (ScalarKind == Vector) { + assert(VectorTy && "Missing type for vector scalar."); DEBUG(dbgs() << "CONVERT TO VECTOR: " << *AI << "\n TYPE = " << *VectorTy << '\n'); NewTy = VectorTy; // Use the vector type. |