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 ede3193bbd
commit e6aba2806c
1 changed files with 3 additions and 2 deletions

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