Skip to content

Commit 4c0e2a4

Browse files
committed
---
yaml --- r: 236214 b: refs/heads/stable c: e493027 h: refs/heads/master v: v3
1 parent e79f1db commit 4c0e2a4

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
@@ -29,7 +29,7 @@ refs/heads/tmp: afae2ff723393b3ab4ccffef6ac7c6d1809e2da0
2929
refs/tags/1.0.0-alpha.2: 4c705f6bc559886632d3871b04f58aab093bfa2f
3030
refs/tags/homu-tmp: f859507de8c410b648d934d8f5ec1c52daac971d
3131
refs/tags/1.0.0-beta: 8cbb92b53468ee2b0c2d3eeb8567005953d40828
32-
refs/heads/stable: 6112b220782134c70516301f7dab2e05e3283f54
32+
refs/heads/stable: e493027984b5961617c867a7003face00a057c92
3333
refs/tags/1.0.0: 55bd4f8ff2b323f317ae89e254ce87162d52a375
3434
refs/tags/1.1.0: bc3c16f09287e5545c1d3f76b7abd54f2eca868b
3535
refs/tags/1.2.0: f557861f822c34f07270347b94b5280de20a597e

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