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

Commit

Permalink
The signatures of __rust_alloc and __rust_dealloc have changed
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonSapin committed Apr 4, 2018
1 parent 6ceaaa4 commit 7243155
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/Analysis/MemoryBuiltins.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,8 @@ static const std::pair<LibFunc, AllocFnsTy> AllocationFnData[] = {
{LibFunc_strdup, {StrDupLike, 1, -1, -1}},
{LibFunc_strndup, {StrDupLike, 2, 1, -1}},

{LibFunc_rust_alloc, {MallocLike, 3, 0, -1}},
{LibFunc_rust_realloc, {ReallocLike, 6, 3, -1}},
{LibFunc_rust_alloc, {MallocLike, 2, 0, -1}},
{LibFunc_rust_realloc, {ReallocLike, 4, 3, -1}},
// TODO: Handle "int posix_memalign(void **, size_t, size_t)"
};

Expand Down

0 comments on commit 7243155

Please sign in to comment.