Be more obvious about what is being tested.

llvm-svn: 132982
This commit is contained in:
Cameron Zwarich 2011-06-14 06:33:51 +00:00
parent 844485af13
commit b5f19d9f6f
1 changed files with 2 additions and 1 deletions

View 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.