Skip to content

Commit 5b0ab2c

Browse files
committed
The personality function is a Function, not a Value
1 parent c593c01 commit 5b0ab2c

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

compiler/rustc_codegen_ssa/src/traits/builder.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -514,11 +514,11 @@ pub trait BuilderMethods<'a, 'tcx>:
514514
fn extract_value(&mut self, agg_val: Self::Value, idx: u64) -> Self::Value;
515515
fn insert_value(&mut self, agg_val: Self::Value, elt: Self::Value, idx: u64) -> Self::Value;
516516

517-
fn set_personality_fn(&mut self, personality: Self::Value);
517+
fn set_personality_fn(&mut self, personality: Self::Function);
518518

519519
// These are used by everyone except msvc
520-
fn cleanup_landing_pad(&mut self, pers_fn: Self::Value) -> (Self::Value, Self::Value);
521-
fn filter_landing_pad(&mut self, pers_fn: Self::Value) -> (Self::Value, Self::Value);
520+
fn cleanup_landing_pad(&mut self, pers_fn: Self::Function) -> (Self::Value, Self::Value);
521+
fn filter_landing_pad(&mut self, pers_fn: Self::Function) -> (Self::Value, Self::Value);
522522
fn resume(&mut self, exn0: Self::Value, exn1: Self::Value);
523523

524524
// These are used only by msvc

compiler/rustc_codegen_ssa/src/traits/misc.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ pub trait MiscCodegenMethods<'tcx>: BackendTypes {
1919
}
2020
fn get_fn(&self, instance: Instance<'tcx>) -> Self::Function;
2121
fn get_fn_addr(&self, instance: Instance<'tcx>) -> Self::Value;
22-
fn eh_personality(&self) -> Self::Value;
22+
fn eh_personality(&self) -> Self::Function;
2323
fn sess(&self) -> &Session;
2424
fn set_frame_pointer_type(&self, llfn: Self::Function);
2525
fn apply_target_cpu_attr(&self, llfn: Self::Function);

0 commit comments

Comments
 (0)