about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorAntoni Boucher <bouanto@zoho.com>2023-01-03 08:56:00 -0500
committerAntoni Boucher <bouanto@zoho.com>2023-01-03 08:56:00 -0500
commit71d7e561bdc2e58cef7fedcec1970dafc852bb61 (patch)
treeaf5eb69a6175d418b18f8d85bc751b18c9cc62c8 /src
parentb0cf0e8c0653aab2c89de7b5e1ef34a24bf8ea80 (diff)
downloadrust-71d7e561bdc2e58cef7fedcec1970dafc852bb61.tar.gz
rust-71d7e561bdc2e58cef7fedcec1970dafc852bb61.zip
Comment
Diffstat (limited to 'src')
-rw-r--r--src/builder.rs8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/builder.rs b/src/builder.rs
index 082b7be8c4e..fd674ed0b87 100644
--- a/src/builder.rs
+++ b/src/builder.rs
@@ -1210,6 +1210,14 @@ impl<'a, 'gcc, 'tcx> BuilderMethods<'a, 'tcx> for Builder<'a, 'gcc, 'tcx> {
     fn cleanup_landing_pad(&mut self, _ty: Type<'gcc>, pers_fn: RValue<'gcc>) -> RValue<'gcc> {
         self.set_personality_fn(pers_fn);
 
+        /*
+         * Matching GCC exception handling with LLVM:
+         *
+         *    GCC                 LLVM
+         *    CATCH_EXPR          landing pad catch clause
+         *    TRY_FINALLY_EXPR    cleanup
+         */
+
         self.cleanup_blocks.borrow_mut().insert(self.block);
 
         // FIXME: we're probably not creating a real cleanup pad here.