summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/llvm/Instructions.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/llvm/Instructions.h b/include/llvm/Instructions.h
index 29395ebca2..e208f37868 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<const VectorType*>(Instruction::getType());
+ return reinterpret_cast<const VectorType*>(getVectorOperand()->getType());
}