Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
AmesingFlank committed Oct 6, 2021
1 parent 6253b0d commit 0815900
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion taichi/runtime/llvm/runtime.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -789,7 +789,7 @@ Ptr LLVMRuntime::allocate_from_buffer(std::size_t size, std::size_t alignment) {
((std::size_t)preallocated_head + alignment - 1) % alignment;
size += alignment_bytes;
if (preallocated_head + size <= preallocated_tail) {
ret = preallocated_head;
ret = preallocated_head + alignment_bytes;
preallocated_head += size;
success = true;
} else {
Expand Down

0 comments on commit 0815900

Please sign in to comment.