mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-28 21:34:23 +00:00
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:
parent
1faea8f086
commit
fe655dc155
@ -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