[llvm-branch-commits] [clang] [clang] Implement pointer authentication for C++ virtual functions, v-tables, and VTTs (PR #94056)
Anton Korobeynikov via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Fri Jun 7 23:46:51 PDT 2024
================
@@ -307,10 +309,15 @@ void CodeGenFunction::EmitCallAndReturnForThunk(llvm::FunctionCallee Callee,
const CXXMethodDecl *MD = cast<CXXMethodDecl>(CurGD.getDecl());
// Adjust the 'this' pointer if necessary
+ const CXXRecordDecl *thisValueClass =
+ MD->getThisType()->getPointeeCXXRecordDecl();
+ if (Thunk)
+ thisValueClass = Thunk->ThisType->getPointeeCXXRecordDecl();
----------------
asl wrote:
```suggestion
ThisValueClass = Thunk->ThisType->getPointeeCXXRecordDecl();
```
https://github.com/llvm/llvm-project/pull/94056
More information about the llvm-branch-commits
mailing list