Skip to content

broken LLVM module using spanZ inside of constructor #4904

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
daurnimator opened this issue Apr 1, 2020 · 1 comment
Closed

broken LLVM module using spanZ inside of constructor #4904

daurnimator opened this issue Apr 1, 2020 · 1 comment
Labels
bug Observed behavior contradicts documented or intended behavior stage1 The process of building from source via WebAssembly and the C backend.
Milestone

Comments

@daurnimator
Copy link
Contributor

Fun bug: if I inlined mem.spanZ(mcpu_oz) into the CrossTarget.parse expression I got:

broken LLVM module found: Call parameter type does not match function signature!
  %67 = getelementptr inbounds %std.zig.cross_target.ParseOptions, %std.zig.cross_target.ParseOptions* %10, i32 0, i32 1, !dbg !20878
 %"?[:0]const u8"*  call fastcc void @std.mem.spanZ.176(%"?[]const u8"* sret %67, i8* %68), !dbg !20880

This is a bug in the Zig compiler.

Originally posted by @daurnimator in #4880

@daurnimator daurnimator added the bug Observed behavior contradicts documented or intended behavior label Apr 1, 2020
@andrewrk andrewrk added the stage1 The process of building from source via WebAssembly and the C backend. label Apr 7, 2020
@andrewrk andrewrk added this to the 0.7.0 milestone Apr 7, 2020
@andrewrk andrewrk modified the milestones: 0.7.0, 0.8.0 Aug 13, 2020
@andrewrk andrewrk modified the milestones: 0.8.0, 0.9.0 Nov 6, 2020
@andrewrk andrewrk modified the milestones: 0.9.0, 0.10.0 May 19, 2021
@Vexu
Copy link
Member

Vexu commented Dec 31, 2022

No test case, closing as duplicate of #4907

@Vexu Vexu closed this as completed Dec 31, 2022
@andrewrk andrewrk modified the milestones: 0.12.0, 0.11.0 Jan 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Observed behavior contradicts documented or intended behavior stage1 The process of building from source via WebAssembly and the C backend.
Projects
None yet
Development

No branches or pull requests

3 participants