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

Commit 2f29a09

Browse files
nagisaTimNN
authored andcommitted
Remove alloc_zeroed optimisation
It causes some weird UB-ey interaction in rustc_data_structures
1 parent 2e7555a commit 2f29a09

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

lib/Analysis/MemoryBuiltins.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,6 @@ static const std::pair<LibFunc, AllocFnsTy> AllocationFnData[] = {
7777
{LibFunc_strndup, {StrDupLike, 2, 1, -1}},
7878

7979
{LibFunc_rust_allocate, {MallocLike, 2, 0, -1}},
80-
{LibFunc_rust_allocate_zeroed, {MallocLike, 2, 0, -1}},
8180
{LibFunc_rust_reallocate, {ReallocLike, 4, 2, -1}}
8281
// TODO: Handle "int posix_memalign(void **, size_t, size_t)"
8382
};

0 commit comments

Comments
 (0)