Skip to content

Commit f39945e

Browse files
committed
---
yaml --- r: 224745 b: refs/heads/tmp c: e493027 h: refs/heads/master i: 224743: abfd717 v: v3
1 parent fba25b3 commit f39945e

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
@@ -25,7 +25,7 @@ refs/tags/0.11.0: e1247cb1d0d681be034adb4b558b5a0c0d5720f9
2525
refs/tags/0.12.0: f0c419429ef30723ceaf6b42f9b5a2aeb5d2e2d1
2626
refs/heads/beta: 83dee3dfbb452a7558193f3ce171b3c60bf4a499
2727
refs/tags/1.0.0-alpha: e42bd6d93a1d3433c486200587f8f9e12590a4d7
28-
refs/heads/tmp: 6112b220782134c70516301f7dab2e05e3283f54
28+
refs/heads/tmp: e493027984b5961617c867a7003face00a057c92
2929
refs/tags/1.0.0-alpha.2: 4c705f6bc559886632d3871b04f58aab093bfa2f
3030
refs/tags/homu-tmp: e58601ab085591c71a27ae82137fc313222c2270
3131
refs/tags/1.0.0-beta: 8cbb92b53468ee2b0c2d3eeb8567005953d40828

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