Skip to content
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

invalid cast opcode for cast from 'i1 (i16*, %"fmt::Formatter"*) addrspace(1)*' to 'i8*' #169

Open
shepmaster opened this issue Jun 13, 2020 · 1 comment

Comments

@shepmaster
Copy link
Member

@_ZN4core3fmt12USIZE_MARKER17h5ad02df6e9f33d4eE = constant <{ i8*, [0 x i8] }> <{ i8* bitcast (i1 (i16*, %"fmt::Formatter"*) addrspace(1)* @_ZN4core3ops8function6FnOnce9call_once17h57a79d3d932cd0d6E to i8*), [0 x i8] zeroinitializer }>, align 1, !dbg !448

This sure feels like our hack to workaround pointers isn't sufficient.

@shepmaster
Copy link
Member Author

Similar issue in core::fmt::run:

  %_19 = bitcast i8* %value.1 to i1 (%"fmt::::Opaque"*, %"fmt::Formatter"*) addrspace(1)*, !dbg !26226

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant