Remove a vacuous check.

llvm-svn: 132938
This commit is contained in:
Cameron Zwarich 2011-06-13 21:44:38 +00:00
parent 934fdc5aba
commit 3614d9bec8

View File

@ -289,7 +289,7 @@ 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 (ScalarKind != Integer && VectorTy && HadAVector) {
if (VectorTy && HadAVector) {
DEBUG(dbgs() << "CONVERT TO VECTOR: " << *AI << "\n TYPE = "
<< *VectorTy << '\n');
NewTy = VectorTy; // Use the vector type.