#include "llvm/IR/Operator.h" #include "llvm/IR/Instructions.h" #include "llvm/IR/Type.h" #include "ConstantsContext.h" namespace llvm { Type *GEPOperator::getSourceElementType() const { if (auto *I = dyn_cast(this)) return I->getSourceElementType(); return cast(this)->getSourceElementType(); } }