Update LLVM (#6022)

Notably, this updates past a major AST refactoring and tries to apply
those changes across the toolchain.
This commit is contained in:
Chandler Carruth
2025-09-06 08:36:10 +00:00
committed by GitHub
parent ee42b2db93
commit 0691d4827c
5 changed files with 11 additions and 14 deletions
+2 -2
View File
@@ -144,7 +144,7 @@ struct CalleeFunctionInfo {
implicit_this_type = method_decl->getThisType();
}
effective_return_type =
is_ctor ? ast_context.getRecordType(method_decl->getParent())
is_ctor ? ast_context.getCanonicalTagType(method_decl->getParent())
: decl->getReturnType();
has_simple_return_type =
IsSimpleAbiType(ast_context, effective_return_type);
@@ -451,7 +451,7 @@ static auto BuildThunkBody(clang::Sema& sema,
info.Constructor) {
// In C++, there are no direct calls to constructors, only initialization,
// so we need to type-check and build the call ourselves.
auto type = sema.Context.getRecordType(
auto type = sema.Context.getCanonicalTagType(
cast<clang::CXXRecordDecl>(callee_info.decl->getParent()));
llvm::SmallVector<clang::Expr*> converted_args;
converted_args.reserve(call_args.size());