keep up with api change introduced in
MODIFY
llvm_util/known_fns.cpp
llvm_util/known_fns.cpp
@@ -38,16 +38,16 @@ known_call(llvm::CallInst &i, const llvm::TargetLibraryInfo &TLI,
RETURN_EXACT();
// TODO: add support for checking mismatch of C vs C++ alloc fns
- if (llvm::isMallocLikeFn(&i, &TLI, false)) {
+ if (llvm::isMallocLikeFn(&i, &TLI)) {
bool isNonNull = i.getCalledFunction()->getName() != "malloc";
RETURN_VAL(
make_unique<Malloc>(*ty, value_name(i), *args[0], isNonNull, align(i)));
}
- else if (llvm::isCallocLikeFn(&i, &TLI, false)) {
+ else if (llvm::isCallocLikeFn(&i, &TLI)) {
RETURN_VAL(
make_unique<Calloc>(*ty, value_name(i), *args[0], *args[1], align(i)));
}
- else if (llvm::isReallocLikeFn(&i, &TLI, false)) {
+ else if (llvm::isReallocLikeFn(&i, &TLI)) {
RETURN_VAL(
make_unique<Malloc>(*ty, value_name(i), *args[0], *args[1], align(i)));
}

MODIFY
llvm_util/llvm2alive.cpp
llvm_util/llvm2alive.cpp
@@ -646,7 +646,7 @@ public:
// or objects passed as pointer arguments
return llvm::isa<llvm::Argument>(V) ||
llvm::isa<llvm::GlobalVariable>(V) ||
- llvm::isMallocLikeFn(V, &TLI, false); }))
+ llvm::isMallocLikeFn(V, &TLI); }))
return LIFETIME_FILLPOISON;
Objs.clear();

keep up with api change introduced in https://github.com/llvm/llvm-project/commit/5d1cfd43483bc82ddd735942a1a1f5be223f948b (#769)