mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-11-21 09:46:39 +00:00
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:
1 parent
ee42b2db93
commit
0691d4827c
5 files changed
+11
-14
No files matched your search
@@ -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());
|
||||
|
||||
Reference in new issue
Block a user