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:
parent
560ebfc81d
commit
18f7eb6578
@ -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'.
|
||||||
|
Loading…
Reference in New Issue
Block a user