mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-10 02:25:47 +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:
@@ -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.
|
||||||
|
Reference in New Issue
Block a user