mirror of
https://github.com/revng/revng
synced 2026-06-21 14:07:57 +00:00
Do not use CallBase::getCalledFunction
Use our wrapper, which does not return nullptr if the `FunctionType`s do not match.
This commit is contained in:
@@ -162,7 +162,7 @@ static TypeVector getReturnTypes(const llvm::CallInst *Call,
|
||||
if (not ReturnTypes.empty())
|
||||
return ReturnTypes;
|
||||
|
||||
auto *CalledFunc = Call->getCalledFunction();
|
||||
auto *CalledFunc = getCalledFunction(Call);
|
||||
revng_assert(CalledFunc);
|
||||
|
||||
if (FunctionTags::Parentheses.isTagOf(CalledFunc)
|
||||
|
||||
Reference in New Issue
Block a user