aboutsummaryrefslogtreecommitdiff
path: root/test/behavior/array.zig
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2022-07-14 16:48:44 -0700
committerAndrew Kelley <andrew@ziglang.org>2022-07-14 16:48:44 -0700
commit667ad9250f7250670778beedcebc45f5c0284446 (patch)
tree76ac3d73766d13be52afa570111e4071d8d19cf9 /test/behavior/array.zig
parent1653a9b2597c66cbcc88ea75d8a4b88c163584a5 (diff)
downloadzig-667ad9250f7250670778beedcebc45f5c0284446.tar.gz
zig-667ad9250f7250670778beedcebc45f5c0284446.zip
Sema: fix coerce_result_ptr in case of inferred result type
Previously, the logic for analyzing coerce_result_ptr would generate invalid bitcast instructions which did not include coercion logic, such as optional wrapping, resulting in miscompilations. Now, the logic of resolve_inferred_alloc goes back over all the placeholders inserted by coerce_result_ptr, and replaces them with logic doing the proper coercions. Closes #12045
Diffstat (limited to 'test/behavior/array.zig')
0 files changed, 0 insertions, 0 deletions