[clang] [clang][Sema] Track trivial-relocatability as a type trait (PR #84621)
Timm Baeder via cfe-commits
cfe-commits at lists.llvm.org
Sun Mar 17 06:46:17 PDT 2024
================
@@ -2680,8 +2680,8 @@ bool QualType::isTriviallyRelocatableType(const ASTContext &Context) const {
return false;
} else if (!BaseElementType->isObjectType()) {
return false;
- } else if (const auto *RD = BaseElementType->getAsRecordDecl()) {
- return RD->canPassInRegisters();
+ } else if (CXXRecordDecl *RD = BaseElementType->getAsCXXRecordDecl()) {
----------------
tbaederr wrote:
The `const auto *` was more our coding style.
https://github.com/llvm/llvm-project/pull/84621
More information about the cfe-commits
mailing list