llvm-6502/include
Hans Wennborg 4f240010fd BumpPtrAllocator: do the size check without moving any pointers
Instead of aligning and moving the CurPtr forward, and then comparing
with End, simply calculate how much space is needed, and compare that
to how much is available.

Hopefully this avoids any doubts about comparing addresses possibly
derived from past the end of the slab array, overflowing, etc.

Also add a test where aligning CurPtr would move it past End.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@217330 91177308-0d34-0410-b5e6-96231b3b80d8
2014-09-07 04:24:31 +00:00
..
llvm BumpPtrAllocator: do the size check without moving any pointers 2014-09-07 04:24:31 +00:00
llvm-c Reinstate "Nuke the old JIT." 2014-09-02 22:28:02 +00:00