diff options
author | Sami Tolvanen <samitolvanen@google.com> | 2023-07-06 23:42:01 +0000 |
---|---|---|
committer | Sami Tolvanen <samitolvanen@google.com> | 2023-07-07 16:50:30 +0000 |
commit | 930635271f810316f48bd1aa78935acf36a08f8f (patch) | |
tree | 32571d003a2e8adf64e43d2c80c6a5b5c1773f73 /llvm/lib/CodeGen/SplitKit.cpp | |
parent | c012eb79e2337dd901d529d40dba157476a14aa4 (diff) | |
download | llvm-930635271f810316f48bd1aa78935acf36a08f8f.zip llvm-930635271f810316f48bd1aa78935acf36a08f8f.tar.gz llvm-930635271f810316f48bd1aa78935acf36a08f8f.tar.bz2 |
[Clang] Emit KCFI type hashes for member functions
With `-fsanitize=kcfi`, Clang currently won't emit type hashes for
C++ member functions, which leads to check failures if they are
indirectly called. As there's no reason to exclude member functions
in CodeGenModule::setKCFIType, emit type hashes also for them to fix
member function pointer calls with KCFI, and add a test to confirm
that types are emitted correctly.
Diffstat (limited to 'llvm/lib/CodeGen/SplitKit.cpp')
0 files changed, 0 insertions, 0 deletions