Skip to content

Commit

Permalink
SVF code formatter
Browse files Browse the repository at this point in the history
  • Loading branch information
yuleisui committed Dec 18, 2023
1 parent 0008685 commit af2bdc8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions svf-llvm/lib/LLVMModule.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -982,10 +982,10 @@ void LLVMModuleSet::buildFunToFunMap()
Type* returnType1 = appfunc->getReturnType();
Type* returnType2 = owfunc->getReturnType();

// Check if the return types are compatible:
// (1) The types are exactly the same,
// Check if the return types are compatible:
// (1) The types are exactly the same,
// (2) Both are pointer types, and at least one of them is a void*.
// Note that getPointerElementType() will be deprecated in the future versions of LLVM.
// Note that getPointerElementType() will be deprecated in the future versions of LLVM.
// Considering compatibility, avoid using getPointerElementType()->isIntegerTy(8) to determine if it is a void * type.
if (!(returnType1 == returnType2 || (returnType1->isPointerTy() && returnType2->isPointerTy())))
{
Expand All @@ -994,7 +994,7 @@ void LLVMModuleSet::buildFunToFunMap()

if (appfunc->arg_size() != owfunc->arg_size())
continue;

bool argMismatch = false;
Function::const_arg_iterator argIter1 = appfunc->arg_begin();
Function::const_arg_iterator argIter2 = owfunc->arg_begin();
Expand Down

0 comments on commit af2bdc8

Please sign in to comment.