mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-27 04:18:42 +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:
1 parent
fe795a5d20
commit
3b43b23304
1 file changed
+2
-4
@@ -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.
|
||||
|
||||
Reference in new issue
Block a user