Skip to content

Commit b929eb0

Browse files
committed
---
yaml --- r: 5229 b: refs/heads/master c: 1181943 h: refs/heads/master i: 5227: 28bad48 v: v3
1 parent 9d3a9a2 commit b929eb0

File tree

3 files changed

+14
-2
lines changed

3 files changed

+14
-2
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
---
2-
refs/heads/master: 5b7145a9f41ba54d956dc16c147a3a06ba331e72
2+
refs/heads/master: 118194381c646b3200f7906710d6dd1630aa0fc8

trunk/src/comp/middle/trans.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4343,7 +4343,7 @@ fn trans_put(in_cx: &@block_ctxt, e: &option::t<@ast::expr>) -> result {
43434343
llargs += [r.val];
43444344
}
43454345
}
4346-
FastCall(bcx, llcallee, llargs);
4346+
bcx = invoke_fastcall(bcx, llcallee, llargs).bcx;
43474347
bcx = trans_block_cleanups(bcx, cx);
43484348
let next_cx = new_sub_block_ctxt(in_cx, "next");
43494349
Br(bcx, next_cx.llbb);
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
// error-pattern:fail
2+
3+
iter x() -> int {
4+
let a = @0;
5+
put 1;
6+
}
7+
8+
fn main() {
9+
for each x in x() {
10+
fail;
11+
}
12+
}

0 commit comments

Comments
 (0)