From 86f714d4be7b940671338a64746325d083cc00ca 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 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@235159 91177308-0d34-0410-b5e6-96231b3b80d8 --- 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'. -- 2.34.1