[PATCH] D77936: [Windows SEH] Fix abnormal-exits in _try

Ten Tzen via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Sat Apr 11 23:57:38 PDT 2020


tentzen updated this revision to Diff 256836.
tentzen marked an inline comment as done.
tentzen added a comment.

Per Eli's feedbacks:
(1) a test case (windows-seh-abnormal-exit.c) is added under clang\test\CodeGen directory.  
(2) an assert is added to catch the extremely rare case that the number of JumpDests in a function is greater than 255.  The max. number of JumpDests is 1 (return) + 2*M + N, where M is the number of for/while-loops and N is the number of Goto targets.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D77936/new/

https://reviews.llvm.org/D77936

Files:
  clang/lib/CodeGen/CGCleanup.cpp
  clang/lib/CodeGen/CGException.cpp
  clang/lib/CodeGen/EHScopeStack.h
  clang/test/CodeGen/windows-seh-abnormal-exits.c

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D77936.256836.patch
Type: text/x-patch
Size: 3766 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20200412/b8ffbf92/attachment-0001.bin>


More information about the cfe-commits mailing list