1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-19 11:02:59 +02:00

Minor code simplification suggested by Duncan

llvm-svn: 187309
This commit is contained in:
Matt Arsenault 2013-07-27 19:22:28 +00:00
parent 2b93c9d1a8
commit 124fe61a07

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());
}
/*!