@@ -1095,7 +1095,7 @@ static auto MapBuiltinIntegerType(Context& context, SemIR::LocId loc_id,
10951095 unsigned width = ast_context.getIntWidth (qual_type);
10961096 bool is_signed = type.isSignedInteger ();
10971097 auto int_n_type = ast_context.getIntTypeForBitwidth (width, is_signed);
1098- if (ast_context. hasSameType (qual_type, int_n_type)) {
1098+ if (clang::ASTContext:: hasSameType (qual_type, int_n_type)) {
10991099 TypeExpr type_expr =
11001100 MakeIntType (context, context.ints ().Add (width), is_signed);
11011101 // Try to make sure integer types of 32 or 64 bits are complete so we can
@@ -1108,11 +1108,12 @@ static auto MapBuiltinIntegerType(Context& context, SemIR::LocId loc_id,
11081108 }
11091109 return type_expr;
11101110 }
1111- if (ast_context. hasSameType (qual_type, ast_context.CharTy )) {
1111+ if (clang::ASTContext:: hasSameType (qual_type, ast_context.CharTy )) {
11121112 return ExprAsType (context, Parse::NodeId::None,
11131113 MakeCharTypeLiteral (context, Parse::NodeId::None));
11141114 }
1115- if (ast_context.hasSameType (qual_type, ast_context.LongTy ) && width == 32 ) {
1115+ if (clang::ASTContext::hasSameType (qual_type, ast_context.LongTy ) &&
1116+ width == 32 ) {
11161117 return ExprAsType (context, Parse::NodeId::None,
11171118 LookupNameInCore (context, Parse::NodeId::None,
11181119 {" CppCompat" , " Long32" }));
@@ -1181,7 +1182,7 @@ static auto LookupCustomRecordType(Context& context,
11811182// Maps a C++ tag type (class, struct, union, enum) to a Carbon type.
11821183static auto MapTagType (Context& context, const clang::TagType& type)
11831184 -> TypeExpr {
1184- auto * tag_decl = type.getOriginalDecl ();
1185+ auto * tag_decl = type.getDecl ();
11851186 CARBON_CHECK (tag_decl);
11861187
11871188 // Check if the declaration is already mapped.
@@ -1833,7 +1834,7 @@ static auto AddDependentUnimportedTypeDecls(Context& context,
18331834 }
18341835
18351836 if (const auto * tag_type = type->getAs <clang::TagType>()) {
1836- AddDependentDecl (context, SemIR::ClangDeclKey (tag_type->getOriginalDecl ()),
1837+ AddDependentDecl (context, SemIR::ClangDeclKey (tag_type->getDecl ()),
18371838 worklist);
18381839 }
18391840}
0 commit comments