Skip to content

Commit

Permalink
[MemoryBuiltins] [NFC] Remove unused overload of isAlignedAllocLikeFn
Browse files Browse the repository at this point in the history
Differential Revision: https://reviews.llvm.org/D117245
  • Loading branch information
Bryce-MW committed Jan 13, 2022
1 parent 4e08ce7 commit 68874d8
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 7 deletions.
2 changes: 0 additions & 2 deletions llvm/include/llvm/Analysis/MemoryBuiltins.h
Expand Up @@ -65,8 +65,6 @@ bool isMallocLikeFn(const Value *V,
/// Tests if a value is a call or invoke to a library function that
/// allocates uninitialized memory with alignment (such as aligned_alloc).
bool isAlignedAllocLikeFn(const Value *V, const TargetLibraryInfo *TLI);
bool isAlignedAllocLikeFn(
const Value *V, function_ref<const TargetLibraryInfo &(Function &)> GetTLI);

/// Tests if a value is a call or invoke to a library function that
/// allocates zero-filled memory (such as calloc).
Expand Down
5 changes: 0 additions & 5 deletions llvm/lib/Analysis/MemoryBuiltins.cpp
Expand Up @@ -251,11 +251,6 @@ bool llvm::isAlignedAllocLikeFn(const Value *V, const TargetLibraryInfo *TLI) {
return getAllocationData(V, AlignedAllocLike, TLI)
.hasValue();
}
bool llvm::isAlignedAllocLikeFn(
const Value *V, function_ref<const TargetLibraryInfo &(Function &)> GetTLI) {
return getAllocationData(V, AlignedAllocLike, GetTLI)
.hasValue();
}

/// Tests if a value is a call or invoke to a library function that
/// allocates zero-filled memory (such as calloc).
Expand Down

0 comments on commit 68874d8

Please sign in to comment.