1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 11:42:57 +01:00

Narrow down the type of CallInst::getFunctionType to a FunctionType

llvm-svn: 235159
This commit is contained in:
David Blaikie 2015-04-17 06:40:11 +00:00
parent 560ebfc81d
commit 18f7eb6578

View File

@ -1337,8 +1337,9 @@ public:
~CallInst() override; ~CallInst() override;
Type *getFunctionType() const { FunctionType *getFunctionType() const {
return cast<PointerType>(getCalledValue()->getType())->getElementType(); return cast<FunctionType>(
cast<PointerType>(getCalledValue()->getType())->getElementType());
} }
// Note that 'musttail' implies 'tail'. // Note that 'musttail' implies 'tail'.