diff --git a/include/llvm/Instructions.h b/include/llvm/Instructions.h index 29395ebca28..e208f37868a 100644 --- a/include/llvm/Instructions.h +++ b/include/llvm/Instructions.h @@ -1321,7 +1321,7 @@ public: const Value *getIndexOperand() const { return Op<1>(); } const VectorType *getVectorOperandType() const { - return reinterpret_cast(Instruction::getType()); + return reinterpret_cast(getVectorOperand()->getType()); }