mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-02-01 18:04:59 +00:00
Minor code simplification suggested by Duncan
llvm-svn: 187309
This commit is contained in:
parent
2b93c9d1a8
commit
124fe61a07
@ -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());
|
||||
}
|
||||
|
||||
/*!
|
||||
|
Loading…
x
Reference in New Issue
Block a user