Browse Source

+ comment explaining previous change

git-svn-id: branches/debug_eh@41376 -
florian 6 năm trước cách đây
mục cha
commit
a24d75ed3d
1 tập tin đã thay đổi với 2 bổ sung0 xóa
  1. 2 0
      compiler/psabiehpi.pas

+ 2 - 0
compiler/psabiehpi.pas

@@ -534,6 +534,8 @@ implementation
         if not(fc_catching_exceptions in flowcontrol) and
         if not(fc_catching_exceptions in flowcontrol) and
            use_cleanup(exceptframekind) then
            use_cleanup(exceptframekind) then
           begin
           begin
+            { Resume might not be called outside of an landing pad else
+              the unwind is immediatly terminated, so create an empty landing pad }
             psabiehprocinfo:=current_procinfo as tpsabiehprocinfo;
             psabiehprocinfo:=current_procinfo as tpsabiehprocinfo;
             psabiehprocinfo.CreateNewPSABIEHCallsite;
             psabiehprocinfo.CreateNewPSABIEHCallsite;