llvm-project
e100bf1d - [clang][CodeGen] Identify virtual methods by their override chain root in the call graph section

Commit
11 days ago
[clang][CodeGen] Identify virtual methods by their override chain root in the call graph section A virtual call site is typed after the method named at the call site, but it can reach any overrider of that method, and overriders may differ from it in their covariant return type. In that case the `!callee_type` identifier of a call through a base class pointer did not match the `!callgraph` identifier of the overrider, and the call graph section missed the edge. Identify every method of an override chain, at definitions, call sites and thunks, by the type of the method that introduced the virtual function, so that virtual calls through a pointer to any class of the hierarchy match the overriders they can reach. Stacked on #230838. Assisted-by: Claude
Author
Committer
Parents
Loading