[PATCH] D79760: [WinEH64] Fix a crush issue when c++ exception nested in a particular form.
Pengfei Wang via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon May 11 19:28:20 PDT 2020
pengfei created this revision.
pengfei added reviewers: andrew.w.kaylor, majnemer, rnk.
Herald added subscribers: llvm-commits, hiraditya.
Herald added a project: LLVM.
This patch fix the bug PR42266. When c++ exception was nested in a
particular form, the stack was not properly unwound under Win64 due to the
layout of try map table.
Tacking what MSVC's doing, I found the 64 bits layout of try map table
is different from 32 bits. By following what MSVC's doing, this issue can
be fixed.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D79760
Files:
llvm/include/llvm/CodeGen/WinEHFuncInfo.h
llvm/lib/CodeGen/SelectionDAG/FunctionLoweringInfo.cpp
llvm/lib/CodeGen/WinEHPrepare.cpp
llvm/lib/Target/X86/X86WinEHState.cpp
llvm/test/CodeGen/X86/win-catchpad-nested-cxx.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D79760.263339.patch
Type: text/x-patch
Size: 8556 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200512/74f83713/attachment.bin>
More information about the llvm-commits
mailing list