Skip to content

Commit 2c60317

Browse files
committed
---
yaml --- r: 1335 b: refs/heads/master c: c863427 h: refs/heads/master i: 1333: 13d6e56 1331: 1d228b0 1327: 7d50055 v: v3
1 parent e2bfde2 commit 2c60317

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-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: b37995664b0149ee92269a3e11f7f6228fe48cc7
2+
refs/heads/master: c863427b64f51fd55cc6191ed08cbfb88034d05b

trunk/src/comp/middle/trans.rs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3229,7 +3229,13 @@ fn new_block_ctxt(@fn_ctxt cx, block_parent parent,
32293229

32303230
// Use this when you're at the top block of a function or the like.
32313231
fn new_top_block_ctxt(@fn_ctxt fcx) -> @block_ctxt {
3232-
ret new_block_ctxt(fcx, parent_none, SCOPE_BLOCK, "function top level");
3232+
auto cx = new_block_ctxt(fcx, parent_none, SCOPE_BLOCK,
3233+
"function top level");
3234+
3235+
// FIXME: hack to give us some spill room to make up for an LLVM
3236+
// bug where it destroys its own callee-saves.
3237+
cx.build.Alloca(T_array(T_int(), 10u));
3238+
ret cx;
32333239
}
32343240

32353241
// Use this when you're at a curly-brace or similar lexical scope.

0 commit comments

Comments
 (0)