diff options
author | Matheus Izvekov <mizvekov@gmail.com> | 2025-03-20 11:09:25 -0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-03-20 11:09:25 -0300 |
commit | 6cd62ad08c974b7d4f7171c66f6567de82bd236f (patch) | |
tree | 259dbf4169ef28a26ddb2663b12beffb51ff789b /clang/lib/CodeGen/CodeGenModule.cpp | |
parent | e6a87da8fe314a009eed769f9737b4b281a06fba (diff) | |
download | llvm-6cd62ad08c974b7d4f7171c66f6567de82bd236f.zip llvm-6cd62ad08c974b7d4f7171c66f6567de82bd236f.tar.gz llvm-6cd62ad08c974b7d4f7171c66f6567de82bd236f.tar.bz2 |
Revert "[clang] improve class type sugar preservation in pointers to members" (#132215)
Reverts llvm/llvm-project#130537
This missed updating lldb, which we didn't notice due to lack of
pre-commit CI.
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
-rw-r--r-- | clang/lib/CodeGen/CodeGenModule.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CodeGenModule.cpp b/clang/lib/CodeGen/CodeGenModule.cpp index 257b7b4..2af692d 100644 --- a/clang/lib/CodeGen/CodeGenModule.cpp +++ b/clang/lib/CodeGen/CodeGenModule.cpp @@ -2667,7 +2667,7 @@ void CodeGenModule::SetLLVMFunctionAttributesForDefinition(const Decl *D, for (const CXXRecordDecl *Base : getMostBaseClasses(MD->getParent())) { llvm::Metadata *Id = CreateMetadataIdentifierForType(Context.getMemberPointerType( - MD->getType(), /*Qualifier=*/nullptr, Base)); + MD->getType(), Context.getRecordType(Base).getTypePtr())); F->addTypeMetadata(0, Id); } } |