forked from OSchip/llvm-project
Narrow down the type of CallInst::getFunctionType to a FunctionType
llvm-svn: 235159
This commit is contained in:
parent
ede3193bbd
commit
e6aba2806c
|
@ -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'.
|
||||
|
|
Loading…
Reference in New Issue