From: David Blaikie Date: Fri, 17 Apr 2015 06:40:11 +0000 (+0000) Subject: Narrow down the type of CallInst::getFunctionType to a FunctionType X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=86f714d4be7b940671338a64746325d083cc00ca;p=oota-llvm.git 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 --- 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'.