Skip to content

Commit 2372a24

Browse files
committed
---
yaml --- r: 224631 b: refs/heads/beta c: e493027 h: refs/heads/master i: 224629: 4439537 224627: 4dfedea 224623: 50b5e6d v: v3
1 parent 03d637e commit 2372a24

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
@@ -23,7 +23,7 @@ refs/tags/0.9: 36870b185fc5f5486636d4515f0e22677493f225
2323
refs/tags/0.10: ac33f2b15782272ae348dbd7b14b8257b2148b5a
2424
refs/tags/0.11.0: e1247cb1d0d681be034adb4b558b5a0c0d5720f9
2525
refs/tags/0.12.0: f0c419429ef30723ceaf6b42f9b5a2aeb5d2e2d1
26-
refs/heads/beta: 6112b220782134c70516301f7dab2e05e3283f54
26+
refs/heads/beta: e493027984b5961617c867a7003face00a057c92
2727
refs/tags/1.0.0-alpha: e42bd6d93a1d3433c486200587f8f9e12590a4d7
2828
refs/heads/tmp: 938f5d7af401e2d8238522fed4a612943b6e77fd
2929
refs/tags/1.0.0-alpha.2: 4c705f6bc559886632d3871b04f58aab093bfa2f

branches/beta/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)