================ @@ -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 _______________________________________________ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits