1 #include "llvm/IR/Operator.h"
2 #include "llvm/IR/Instructions.h"
3 #include "llvm/IR/Type.h"
5 #include "ConstantsContext.h"
8 Type *GEPOperator::getSourceElementType() const {
9 if (auto *I = dyn_cast<GetElementPtrInst>(this))
10 return I->getSourceElementType();
11 return cast<GetElementPtrConstantExpr>(this)->getSourceElementType();