aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/CodeGenModule.cpp
diff options
context:
space:
mode:
authorMatheus Izvekov <mizvekov@gmail.com>2025-03-20 11:09:25 -0300
committerGitHub <noreply@github.com>2025-03-20 11:09:25 -0300
commit6cd62ad08c974b7d4f7171c66f6567de82bd236f (patch)
tree259dbf4169ef28a26ddb2663b12beffb51ff789b /clang/lib/CodeGen/CodeGenModule.cpp
parente6a87da8fe314a009eed769f9737b4b281a06fba (diff)
downloadllvm-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.cpp2
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);
}
}