[PATCH] D135270: [WinEH] Validate funclet tokens in colorEHFunclets()
Stefan Gränitz via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Oct 5 08:16:58 PDT 2022
sgraenitz created this revision.
sgraenitz added reviewers: rnk, efriedma, lebedev.ri.
Herald added a subscriber: hiraditya.
Herald added a project: All.
sgraenitz requested review of this revision.
Herald added a project: LLVM.
When coloring EH funclets during WinEHPrepare, we should check that none of the involved funclet bundle operands refers to an invalid/out-of-scope funclet pad. This would lead to silent binary truncations later on.
For the time being users can demote the error into a warning by passing the `-no-funclet-bundle-errors` flag.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D135270
Files:
llvm/lib/Analysis/EHPersonalities.cpp
llvm/test/CodeGen/WinEH/wineh-funclet-bundle-validation.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D135270.465409.patch
Type: text/x-patch
Size: 4255 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20221005/9921c569/attachment.bin>
More information about the llvm-commits
mailing list