aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/CodeGenModule.cpp
diff options
context:
space:
mode:
authorMatheus Izvekov <mizvekov@gmail.com>2025-03-20 17:52:48 -0300
committerGitHub <noreply@github.com>2025-03-20 17:52:48 -0300
commit5151e6d7febb73ed7085667b4ef55d8af7d058b5 (patch)
tree968dbbbc4c96c29ee1ce51a42bf318d924325cfa /clang/lib/CodeGen/CodeGenModule.cpp
parentad5cac3b06c3cb41397acc1fc96beae9b460f20c (diff)
downloadllvm-5151e6d7febb73ed7085667b4ef55d8af7d058b5.zip
llvm-5151e6d7febb73ed7085667b4ef55d8af7d058b5.tar.gz
llvm-5151e6d7febb73ed7085667b4ef55d8af7d058b5.tar.bz2
Revert "Reland: [clang] preserve class type sugar when taking pointer to member" (#132280)
Reverts llvm/llvm-project#132234 Needs to be reverted due to dependency. This blocks reverting another PR, see here: https://github.com/llvm/llvm-project/pull/131965#issuecomment-2741619498
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 96ab4dd..ecce52e 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);
}
}