Skip to content

Commit

Permalink
Apply review feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
Amanieu committed Mar 7, 2020
1 parent 04f24b7 commit 9f3679f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/libpanic_unwind/seh.rs
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ static mut TYPE_DESCRIPTOR: _TypeDescriptor = _TypeDescriptor {
macro_rules! define_cleanup {
($abi:tt) => {
unsafe extern $abi fn exception_cleanup(e: *mut Exception) {
if let Some(b) = e.read().data {
if let Exception { data: Some(b) } = e.read() {
drop(b);
super::__rust_drop_panic();
}
Expand Down
2 changes: 1 addition & 1 deletion src/librustc_codegen_llvm/intrinsic.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1024,7 +1024,7 @@ fn codegen_gnu_try(
// Codegens the shims described above:
//
// bx:
// invoke %func(%data) normal %normal unwind %catch
// invoke %try_func(%data) normal %normal unwind %catch
//
// normal:
// ret 0
Expand Down

0 comments on commit 9f3679f

Please sign in to comment.