mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-04 15:01:05 +01:00
Use CXXRecordDecl for consistency (#7891)
`CXXRecordDecl` and `RecordDecl` are functionally interchangeable in our context, and other than here we only use `RecordDecl` when APIs outside our control force us to.
This commit is contained in:
@@ -161,7 +161,8 @@ auto ExportNameScopeToCpp(Context& context, SemIR::LocId loc_id,
|
||||
|
||||
// Complete the type here to avoid hitting a clang assert later when
|
||||
// adding methods.
|
||||
if (auto* record_decl = llvm::dyn_cast<clang::RecordDecl>(decl_context)) {
|
||||
if (auto* record_decl =
|
||||
llvm::dyn_cast<clang::CXXRecordDecl>(decl_context)) {
|
||||
context.ast_context().getExternalSource()->CompleteType(record_decl);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user