Be more obvious about what is being tested.
authorCameron Zwarich <zwarich@apple.com>
Tue, 14 Jun 2011 06:33:51 +0000 (06:33 +0000)
committerCameron Zwarich <zwarich@apple.com>
Tue, 14 Jun 2011 06:33:51 +0000 (06:33 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@132982 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Transforms/Scalar/ScalarReplAggregates.cpp

index c0349a16f85a22af3f4159552e2060915cfe86fe..beef127ef950f9fb29b3155be1f7e83f7d83bdec 100644 (file)
@@ -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.