mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[ClangImporter] Use new CXXThisExpr::Create function
The constructor takes a new arg which `Create` now handles. Use it instead.
This commit is contained in:
@@ -2114,8 +2114,9 @@ clang::CXXMethodDecl *SwiftDeclSynthesizer::synthesizeCXXForwardingMethod(
|
||||
auto diagState = clangSema.DelayedDiagnostics.push(diagPool);
|
||||
|
||||
// Construct the method's body.
|
||||
clang::Expr *thisExpr = new (clangCtx) clang::CXXThisExpr(
|
||||
clang::SourceLocation(), newMethod->getThisType(), /*IsImplicit=*/false);
|
||||
clang::Expr *thisExpr = clang::CXXThisExpr::Create(
|
||||
clangCtx, clang::SourceLocation(), newMethod->getThisType(),
|
||||
/*IsImplicit=*/false);
|
||||
if (castThisToNonConstThis) {
|
||||
auto baseClassPtr =
|
||||
clangCtx.getPointerType(clangCtx.getRecordType(derivedClass));
|
||||
|
||||
Reference in New Issue
Block a user