Skip to content

Commit

Permalink
Field construction should ignore hyperobject wrapper
Browse files Browse the repository at this point in the history
  • Loading branch information
VoxSciurorum committed Oct 29, 2024
1 parent 85f5b0b commit 5fa6ded
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion clang/lib/Sema/SemaDeclCXX.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5096,7 +5096,7 @@ BuildImplicitMemberInitializer(Sema &SemaRef, CXXConstructorDecl *Constructor,
"Unhandled implicit init kind!");

QualType FieldBaseElementType =
SemaRef.Context.getBaseElementType(Field->getType());
SemaRef.Context.getBaseElementType(Field->getType().stripHyperobject());

if (FieldBaseElementType->isRecordType()) {
InitializedEntity InitEntity =
Expand Down

0 comments on commit 5fa6ded

Please sign in to comment.