summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--llvm/include/llvm/IR/Instructions.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/llvm/include/llvm/IR/Instructions.h b/llvm/include/llvm/IR/Instructions.h
index 1f2ca301d24..ddb441b6e5d 100644
--- a/llvm/include/llvm/IR/Instructions.h
+++ b/llvm/include/llvm/IR/Instructions.h
@@ -1337,8 +1337,9 @@ public:
~CallInst() override;
- Type *getFunctionType() const {
- return cast<PointerType>(getCalledValue()->getType())->getElementType();
+ FunctionType *getFunctionType() const {
+ return cast<FunctionType>(
+ cast<PointerType>(getCalledValue()->getType())->getElementType());
}
// Note that 'musttail' implies 'tail'.
OpenPOWER on IntegriCloud