-
-
Notifications
You must be signed in to change notification settings - Fork 260
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Handle new extern(C) structs with size 0
The linkage now (2.098) also affects the size of empty structs - e.g., 1 for extern(C++), 0 for Posix extern(C), 4 for MSVC extern(C). This also affects beauties like `extern(C) struct S { double[0] a; }`, as tested by dmd-testsuite's runnable/ldc_cabi1.d, which is hereby fixed for Posix - don't try to GEP into an empty LL struct.
- Loading branch information
Showing
2 changed files
with
17 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters