We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
It's currently limited to initializers referencing either a dllimport global directly, or a cast one. For
void foo() { import std.variant; auto t = typeid(VariantN!16); }
the generated TypeInfo_Struct uses a GEP:
TypeInfo_Struct
@_D42TypeInfo_S3std7variant__T8VariantNVmi16ZQp6__initZ = linkonce_odr global %object.TypeInfo_Struct { …, { i64, i8* } { i64 24, i8* getelementptr inbounds (%"std.variant.VariantN!16LU.VariantN", %"std.variant.VariantN!16LU.VariantN"* @_D3std7variant__T8VariantNVmi16ZQp6__initZ, i32 0, i32 0, i32 0) }, … … @_D3std7variant__T8VariantNVmi16ZQp6__initZ = external dllimport constant %"std.variant.VariantN!16LU.VariantN", align 8 ; [#uses = 1]
The text was updated successfully, but these errors were encountered:
Fix ldc-developers#3926 - handle GEPs in DLLImport relocation pass
8fdcbf8
bc9468b
No branches or pull requests
It's currently limited to initializers referencing either a dllimport global directly, or a cast one. For
the generated
TypeInfo_Struct
uses a GEP:The text was updated successfully, but these errors were encountered: