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
This commit is contained in:
David Blaikie 2015-04-17 06:40:11 +00:00
parent 4a10888e07
commit 86f714d4be

View File

@ -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'.