aboutsummaryrefslogtreecommitdiff
path: root/src/error.cpp
diff options
context:
space:
mode:
authorLayne Gustafson <lgustaf1@binghamton.edu>2020-01-16 15:26:53 -0500
committerAndrew Kelley <andrew@ziglang.org>2020-01-19 20:53:20 -0500
commit35c681b7b18df1f8679457975f9dcfc6a4a53468 (patch)
tree0a6826b835a11f0947ef67a9fd2004df6c8f0c7f /src/error.cpp
parent8902f3ca32c22656e1f11b562dc3ad6030da14ac (diff)
downloadzig-35c681b7b18df1f8679457975f9dcfc6a4a53468.tar.gz
zig-35c681b7b18df1f8679457975f9dcfc6a4a53468.zip
Fix sentinel mismatch in llvm strings
Previously, buffers were used with toOwnedSlice() to create c strings for LLVM cpu/feature strings. However, toOwnedSlice() shrinks the string memory to the buffer's length, which cuts off the null terminator. Now toSliceConst() is used instead, and the buffer is not deinited so that the string memory is not freed.
Diffstat (limited to 'src/error.cpp')
0 files changed, 0 insertions, 0 deletions