Skip to content

Commit 46feed2

Browse files
authored
fix build with latest version of llvm (#822)
1 parent 644fcab commit 46feed2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

llvm_util/known_fns.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -447,12 +447,12 @@ known_call(llvm::CallInst &i, const llvm::TargetLibraryInfo &TLI,
447447
RETURN_VAL(
448448
make_unique<Malloc>(*ty, value_name(i), *args[0], isNonNull, align(i)));
449449
}
450-
if (llvm::isReallocLikeFn(&i, &TLI)) {
450+
if (llvm::getReallocatedOperand(&i, &TLI)) {
451451
bool isNonNull = i.hasRetAttr(llvm::Attribute::NonNull);
452452
RETURN_VAL(make_unique<Malloc>(*ty, value_name(i), *args[0], *args[1],
453453
isNonNull, align(i)));
454454
}
455-
if (llvm::isFreeCall(&i, &TLI)) {
455+
if (llvm::getFreedOperand(&i, &TLI)) {
456456
if (i.hasFnAttr(llvm::Attribute::NoFree)) {
457457
auto zero = make_intconst(0, 1);
458458
RETURN_VAL(make_unique<Assume>(*zero, Assume::AndNonPoison));

0 commit comments

Comments
 (0)