aboutsummaryrefslogtreecommitdiff
path: root/src/ir.cpp
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2019-02-03 16:13:28 -0500
committerAndrew Kelley <andrew@ziglang.org>2019-02-03 16:13:28 -0500
commitdfbc063f79dc1358208216b466c1bf8c44baa430 (patch)
tree219c5f46a2e688fc1799117a1680102528691ce3 /src/ir.cpp
parentc90c256868a80cd35e9ba679ba082330592620c9 (diff)
downloadzig-dfbc063f79dc1358208216b466c1bf8c44baa430.tar.gz
zig-dfbc063f79dc1358208216b466c1bf8c44baa430.zip
`std.mem.Allocator.create` replaced with better API
`std.mem.Allocator.createOne` is renamed to `std.mem.Allocator.create`. The problem with the previous API is that even after copy elision, the initalization value passed as a parameter would always be a copy. With the new API, once copy elision is done, initialization functions can directly initialize allocated memory in place. Related: * #1872 * #1873
Diffstat (limited to 'src/ir.cpp')
0 files changed, 0 insertions, 0 deletions