mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-19 04:32:19 +00:00
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:
parent
4a10888e07
commit
86f714d4be
@ -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…
x
Reference in New Issue
Block a user