From 18f7eb6578d17c3b64daf8d3dca51ef013aec28e Mon Sep 17 00:00:00 2001 From: David Blaikie Date: Fri, 17 Apr 2015 06:40:11 +0000 Subject: [PATCH] Narrow down the type of CallInst::getFunctionType to a FunctionType llvm-svn: 235159 --- include/llvm/IR/Instructions.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/include/llvm/IR/Instructions.h b/include/llvm/IR/Instructions.h index 1f2ca301d24..ddb441b6e5d 100644 --- a/include/llvm/IR/Instructions.h +++ b/include/llvm/IR/Instructions.h @@ -1337,8 +1337,9 @@ public: ~CallInst() override; - Type *getFunctionType() const { - return cast(getCalledValue()->getType())->getElementType(); + FunctionType *getFunctionType() const { + return cast( + cast(getCalledValue()->getType())->getElementType()); } // Note that 'musttail' implies 'tail'.