Skip to content

Commit 41f6a3d

Browse files
committed
Comments and cleanup.
1 parent 2f29f99 commit 41f6a3d

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/comp/middle/trans.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1778,6 +1778,8 @@ fn set_no_inline(ValueRef f) {
17781778
lib::llvm::llvm::Attribute);
17791779
}
17801780

1781+
// Tell LLVM to emit the information necessary to unwind the stack for the
1782+
// function f.
17811783
fn set_uwtable(ValueRef f) {
17821784
llvm::LLVMAddFunctionAttr(f,
17831785
lib::llvm::LLVMUWTableAttribute as
@@ -7964,11 +7966,11 @@ fn process_fwding_mthd(@local_ctxt cx, @ty::method m, TypeRef llself_ty,
79647966

79657967
// Set up the original method to be called.
79667968
auto orig_mthd_ty = ty::method_ty_to_fn_ty(cx.ccx.tcx, *m);
7967-
auto llwith_obj_ty_real = val_ty(llwith_obj.val);
7969+
auto llwith_obj_ty = val_ty(llwith_obj.val);
79687970
auto llorig_mthd_ty =
79697971
type_of_fn_full(bcx.fcx.lcx.ccx, fake_span,
79707972
ty::ty_fn_proto(bcx.fcx.lcx.ccx.tcx, orig_mthd_ty),
7971-
some[TypeRef](llwith_obj_ty_real),
7973+
some[TypeRef](llwith_obj_ty),
79727974
m.inputs,
79737975
m.output,
79747976
vec::len[ast::ty_param](ty_params));

0 commit comments

Comments
 (0)