Skip to content

Commit 7bf144d

Browse files
committed
---
yaml --- r: 1572 b: refs/heads/master c: fcd195b h: refs/heads/master v: v3
1 parent a95df59 commit 7bf144d

File tree

3 files changed

+10
-2
lines changed

3 files changed

+10
-2
lines changed

[refs]

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
---
2-
refs/heads/master: 02f669ca6759f94deb87fb8dc3303eb08544c5a0
2+
refs/heads/master: fcd195bb4ca47d4b3c7dfd3e6c14dc5771e139cc

trunk/src/comp/middle/trans.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -4920,7 +4920,8 @@ fn trans_tag_variant(@crate_ctxt cx, ast.def_id tag_id,
49204920

49214921
auto arg_ty = arg_tys.(i).ty;
49224922
auto llargval;
4923-
if (ty.type_is_structural(arg_ty)) {
4923+
if (ty.type_is_structural(arg_ty) ||
4924+
ty.type_has_dynamic_size(arg_ty)) {
49244925
llargval = llargptr;
49254926
} else {
49264927
llargval = bcx.build.Load(llargptr);
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
tag clam[T] {
2+
a(T);
3+
}
4+
5+
fn main() {
6+
}
7+

0 commit comments

Comments
 (0)