diff --git a/llvm/include/llvm/Analysis/MemoryBuiltins.h b/llvm/include/llvm/Analysis/MemoryBuiltins.h --- a/llvm/include/llvm/Analysis/MemoryBuiltins.h +++ b/llvm/include/llvm/Analysis/MemoryBuiltins.h @@ -65,8 +65,6 @@ /// 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 GetTLI); /// Tests if a value is a call or invoke to a library function that /// allocates zero-filled memory (such as calloc). diff --git a/llvm/lib/Analysis/MemoryBuiltins.cpp b/llvm/lib/Analysis/MemoryBuiltins.cpp --- a/llvm/lib/Analysis/MemoryBuiltins.cpp +++ b/llvm/lib/Analysis/MemoryBuiltins.cpp @@ -251,11 +251,6 @@ return getAllocationData(V, AlignedAllocLike, TLI) .hasValue(); } -bool llvm::isAlignedAllocLikeFn( - const Value *V, function_ref 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).