mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-08 06:32: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 {
|
Type *getSourceElementType() const {
|
||||||
SequentialType *Ty = cast<SequentialType>(getPointerOperandType());
|
return cast<SequentialType>(getPointerOperandType()->getScalarType())
|
||||||
if (VectorType *VTy = dyn_cast<VectorType>(Ty))
|
->getElementType();
|
||||||
Ty = cast<SequentialType>(VTy->getElementType());
|
|
||||||
return Ty->getElementType();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// \brief Returns the address space of this instruction's pointer type.
|
/// \brief Returns the address space of this instruction's pointer type.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user