Skip to content

Commit

Permalink
Fix trap_unreachable_ret_value
Browse files Browse the repository at this point in the history
  • Loading branch information
bjorn3 committed Jun 28, 2020
1 parent 590c239 commit 4a48a39
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/trap.rs
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ pub(crate) fn trap_unreachable_ret_value<'tcx>(
dest_layout: TyAndLayout<'tcx>,
msg: impl AsRef<str>,
) -> CValue<'tcx> {
trap_unreachable(fx, msg);
trap_unimplemented(fx, msg);
CValue::by_ref(Pointer::const_addr(fx, 0), dest_layout)
}

Expand Down

0 comments on commit 4a48a39

Please sign in to comment.