[clang] [clang] Fix behavior of `__is_trivially_relocatable(volatile int)` (PR #77092)
Amirreza Ashouri via cfe-commits
cfe-commits at lists.llvm.org
Fri Jan 5 08:06:31 PST 2024
================
@@ -2651,6 +2651,8 @@ bool QualType::isTriviallyRelocatableType(const ASTContext &Context) const {
return false;
} else if (!BaseElementType->isObjectType()) {
return false;
+ } else if (BaseElementType.isTriviallyCopyableType(Context)) {
+ return true;
----------------
AMP999 wrote:
OK! I changed the order.
https://github.com/llvm/llvm-project/pull/77092
More information about the cfe-commits
mailing list