[all-commits] [llvm/llvm-project] ea12c1: [Asan] Add "funclet" OpBundle to generated runtime...

sylvain-audi via All-commits all-commits at lists.llvm.org
Fri Mar 8 09:29:37 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: ea12c1fa15093e24818785b2ca6e06588372a3bf
      https://github.com/llvm/llvm-project/commit/ea12c1fa15093e24818785b2ca6e06588372a3bf
  Author: sylvain-audi <62035306+sylvain-audi at users.noreply.github.com>
  Date:   2024-03-08 (Fri, 08 Mar 2024)

  Changed paths:
    A compiler-rt/test/asan/TestCases/Windows/issue64990.cpp
    M llvm/lib/Transforms/Instrumentation/AddressSanitizer.cpp
    M llvm/test/Instrumentation/AddressSanitizer/asan-funclet.ll
    M llvm/test/Instrumentation/AddressSanitizer/localescape.ll

  Log Message:
  -----------
  [Asan] Add "funclet" OpBundle to generated runtime calls if required by EH personality (#82533)

Previously, runtime calls introduced by ASan instrumentation into EH
pads were missing the funclet token expected by WinEHPrepare.
WinEHPrepare would then identify the containing BB as invalid and
discard it, causing invalid code generation that most likely crashes.

Also fixed localescape test, switching its EH personality to match code
without funclets.

This PR is based on the Phabricator patch
https://reviews.llvm.org/D143108

Fixes https://github.com/llvm/llvm-project/issues/64990



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list