mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-01 15:11:24 +00:00
Simplify expression
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@232214 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
fe795a5d20
commit
3b43b23304
@ -846,10 +846,8 @@ public:
|
||||
}
|
||||
|
||||
Type *getSourceElementType() const {
|
||||
SequentialType *Ty = cast<SequentialType>(getPointerOperandType());
|
||||
if (VectorType *VTy = dyn_cast<VectorType>(Ty))
|
||||
Ty = cast<SequentialType>(VTy->getElementType());
|
||||
return Ty->getElementType();
|
||||
return cast<SequentialType>(getPointerOperandType()->getScalarType())
|
||||
->getElementType();
|
||||
}
|
||||
|
||||
/// \brief Returns the address space of this instruction's pointer type.
|
||||
|
Loading…
Reference in New Issue
Block a user