]> git.lizzy.rs Git - rust.git/commitdiff
Apply review feedback
authorAmanieu d'Antras <amanieu@gmail.com>
Sat, 7 Mar 2020 16:31:30 +0000 (16:31 +0000)
committerAmanieu d'Antras <amanieu@gmail.com>
Sat, 7 Mar 2020 16:31:30 +0000 (16:31 +0000)
src/libpanic_unwind/seh.rs
src/librustc_codegen_llvm/intrinsic.rs

index c1656023b60e60317f23903e6891c61c103ba53c..c294fe26327d7ac3d2f73c61b26eff28c398a755 100644 (file)
@@ -237,7 +237,7 @@ pub struct _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();
             }
index d34540638f183e06b36303a2438391d1cb089300..5ce18a9007a629e7efc77b97a43344fad9f61bdf 100644 (file)
@@ -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