Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mu-impl-fast
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
40
Issues
40
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
mu
mu-impl-fast
Commits
9759298a
Commit
9759298a
authored
Nov 14, 2016
by
qinsoon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
min align for struct is 1
parent
0a808fc9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
src/compiler/backend/mod.rs
src/compiler/backend/mod.rs
+1
-1
No files found.
src/compiler/backend/mod.rs
View file @
9759298a
...
...
@@ -128,7 +128,7 @@ pub fn resolve_backend_type_info (ty: &MuType, vm: &VM) -> BackendTypeInfo {
fn
layout_struct
(
tys
:
&
Vec
<
P
<
MuType
>>
,
vm
:
&
VM
)
->
BackendTypeInfo
{
let
mut
offsets
:
Vec
<
ByteSize
>
=
vec!
[];
let
mut
cur
:
ByteSize
=
0
;
let
mut
struct_align
:
ByteSize
=
0
;
let
mut
struct_align
:
ByteSize
=
1
;
for
ty
in
tys
.iter
()
{
let
ty_info
=
vm
.get_backend_type_info
(
ty
.id
());
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment