Skip to content
This repository was archived by the owner on Feb 5, 2019. It is now read-only.

Commit d4f85ba

Browse files
nagisaarielb1
authored andcommitted
Remove reallocate_inplace from memory analysis
It does not return a "new" pointer and therefore it is unclear if it is not entirely clear whether it is ReallocLike enough. Removing for now just to be safe.
1 parent d1144af commit d4f85ba

File tree

2 files changed

+0
-5
lines changed

2 files changed

+0
-5
lines changed

include/llvm/Analysis/TargetLibraryInfo.def

-4
Original file line numberDiff line numberDiff line change
@@ -216,10 +216,6 @@ TLI_DEFINE_STRING_INTERNAL("__rust_deallocate")
216216
TLI_DEFINE_ENUM_INTERNAL(rust_reallocate)
217217
TLI_DEFINE_STRING_INTERNAL("__rust_reallocate")
218218

219-
/// uint8_t *__rust_reallocate_inplace(uint8_t *ptr, size_t oldsz, size_t newsz, size_t align)
220-
TLI_DEFINE_ENUM_INTERNAL(rust_reallocate_inplace)
221-
TLI_DEFINE_STRING_INTERNAL("__rust_reallocate_inplace")
222-
223219
/// double __sincospi_stret(double x);
224220
TLI_DEFINE_ENUM_INTERNAL(sincospi_stret)
225221
TLI_DEFINE_STRING_INTERNAL("__sincospi_stret")

lib/Analysis/MemoryBuiltins.cpp

-1
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,6 @@ static const std::pair<LibFunc::Func, AllocFnsTy> AllocationFnData[] = {
7878
{LibFunc::rust_allocate, {MallocLike, 2, 0, -1}},
7979
{LibFunc::rust_allocate_zeroed, {MallocLike, 2, 0, -1}},
8080
{LibFunc::rust_reallocate, {ReallocLike, 4, 2, -1}},
81-
{LibFunc::rust_reallocate_inplace, {ReallocLike, 4, 2, -1}}
8281
// TODO: Handle "int posix_memalign(void **, size_t, size_t)"
8382
};
8483

0 commit comments

Comments
 (0)