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:
Alessandro Di Federico
2024-08-07 15:17:13 +02:00
parent 9408f4f465
commit 0cb3eedd37
16 changed files with 30 additions and 29 deletions
+1 -1
View File
@@ -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)