[clang] [Clang] Implement the core language parts of P2786 - Trivial relocation (PR #127636)

via cfe-commits cfe-commits at lists.llvm.org
Fri Feb 21 06:34:43 PST 2025


================
@@ -2862,6 +2862,30 @@ bool QualType::isTriviallyRelocatableType(const ASTContext &Context) const {
   }
 }
 
+bool QualType::isCppTriviallyRelocatableType(const ASTContext &Context) const {
+  QualType BaseElementType = Context.getBaseElementType(*this);
----------------
Sirraide wrote:

Iirc `getBaseElementTypeUnsafe()` does less work, and we don’t care about cv qualifiers anyway here from what I can tell.

https://github.com/llvm/llvm-project/pull/127636


More information about the cfe-commits mailing list