[all-commits] [llvm/llvm-project] 003b60: [clang] Ensure correct metadata for relative vtables
PiJoules via All-commits
all-commits at lists.llvm.org
Wed Dec 7 16:43:17 PST 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 003b6033e1b254dd96ddb341f375b73ee5bed2af
https://github.com/llvm/llvm-project/commit/003b6033e1b254dd96ddb341f375b73ee5bed2af
Author: Leonard Chan <leonardchan at google.com>
Date: 2022-12-08 (Thu, 08 Dec 2022)
Changed paths:
M clang/lib/CodeGen/CGVTables.cpp
M clang/lib/CodeGen/CGVTables.h
M clang/lib/CodeGen/CodeGenModule.h
M clang/test/CodeGenCXX/type-metadata.cpp
Log Message:
-----------
[clang] Ensure correct metadata for relative vtables
Prior to this, metadata pertaining to the size or address point offsets
into a relative vtable were twice the value they should be (treating
component widths as pointer width rather than 4 bytes). This prevented
some vtables from being devirtualized with D134320. This ensures the
correct metadata is written so whole program devirtualization can catch
these remaining devirt targets.
Differential Revision: https://reviews.llvm.org/D134687
More information about the All-commits
mailing list