Skip to content

Commit 110795a

Browse files
committed
types with ptrauth are not relocatable for now
1 parent 256b8c8 commit 110795a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

clang/lib/Sema/SemaExprCXX.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5654,6 +5654,9 @@ static bool IsTriviallyRelocatableType(Sema &SemaRef, QualType T) {
56545654
if (!BaseElementType->isObjectType())
56555655
return false;
56565656

5657+
if(T.hasAddressDiscriminatedPointerAuth())
5658+
return false;
5659+
56575660
if (const auto *RD = BaseElementType->getAsCXXRecordDecl();
56585661
RD && !RD->isPolymorphic() && IsCXXTriviallyRelocatableType(SemaRef, RD))
56595662
return true;

0 commit comments

Comments
 (0)