[PATCH] D143108: [Asan] Add "funclet" OpBundle to Asan calls that are generated inside a funclet

Sylvain Audi via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Feb 1 13:33:51 PST 2023


saudi created this revision.
saudi added reviewers: rnk, steveire, rsmith, smeenai.
saudi added projects: LLVM, Sanitizers, All.
Herald added subscribers: Enna1, hiraditya.
saudi requested review of this revision.
Herald added a subscriber: llvm-commits.

This patch implements the fix suggested in the comments of PR39667

It ensures that when asan creates calls (`__asan_*`) inside of a funclet, those calls are tagged with the required "funclet" OpBundle.
It only applies to EH personality that use funclets, especially Windows EH.

Also, changed localescape test, switching its EH personality to match the code which doesn't match the funclet scoping.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D143108

Files:
  llvm/lib/Transforms/Instrumentation/AddressSanitizer.cpp
  llvm/test/Instrumentation/AddressSanitizer/asan-funclet.ll
  llvm/test/Instrumentation/AddressSanitizer/localescape.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D143108.494048.patch
Type: text/x-patch
Size: 23588 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230201/8ea50a66/attachment.bin>


More information about the llvm-commits mailing list