Skip to content

Commit 485f0c7

Browse files
committed
---
yaml --- r: 229143 b: refs/heads/try c: e493027 h: refs/heads/master i: 229141: 6f2d423 229139: fffc322 229135: 417d2bd v: v3
1 parent 37dbc06 commit 485f0c7

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
refs/heads/master: aca2057ed5fb7af3f8905b2bc01f72fa001c35c8
33
refs/heads/snap-stage3: 1af31d4974e33027a68126fa5a5a3c2c6491824f
4-
refs/heads/try: 6112b220782134c70516301f7dab2e05e3283f54
4+
refs/heads/try: e493027984b5961617c867a7003face00a057c92
55
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
66
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
77
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503

branches/try/src/librustc_trans/trans/intrinsic.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ use llvm::{SequentiallyConsistent, Acquire, Release, AtomicXchg, ValueRef, TypeK
1616
use middle::subst;
1717
use middle::subst::FnSpace;
1818
use trans::adt;
19+
use trans::attributes;
1920
use trans::base::*;
2021
use trans::build::*;
2122
use trans::callee;
@@ -1189,6 +1190,7 @@ fn trans_gnu_try<'blk, 'tcx>(bcx: Block<'blk, 'tcx>,
11891190
// ret ptr
11901191

11911192
let rust_try = declare::define_internal_rust_fn(ccx, "__rust_try", try_fn_ty);
1193+
attributes::emit_uwtable(rust_try, true);
11921194
let catch_pers = match bcx.tcx().lang_items.eh_personality_catch() {
11931195
Some(did) => callee::trans_fn_ref(ccx, did, ExprId(0),
11941196
bcx.fcx.param_substs).val,
@@ -1219,6 +1221,7 @@ fn trans_gnu_try<'blk, 'tcx>(bcx: Block<'blk, 'tcx>,
12191221
AddClause(catch, vals, C_null(Type::i8p(ccx)));
12201222
let ptr = ExtractValue(catch, vals, 0);
12211223
Ret(catch, ptr, dloc);
1224+
fcx.cleanup();
12221225

12231226
return rust_try
12241227
});

0 commit comments

Comments
 (0)