Minor code simplification suggested by Duncan

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@187309 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Matt Arsenault 2013-07-27 19:22:28 +00:00
parent 1faea8f086
commit fe655dc155

View File

@ -514,8 +514,7 @@ unsigned DataLayout::getPointerTypeSizeInBits(Type *Ty) const {
if (Ty->isPointerTy())
return getTypeSizeInBits(Ty);
Type *EleTy = cast<VectorType>(Ty)->getElementType();
return getTypeSizeInBits(EleTy);
return getTypeSizeInBits(Ty->getScalarType());
}
/*!