Skip to content

Commit 8646973

Browse files
!fixup fix ci issue
1 parent aebd545 commit 8646973

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

clang/lib/Sema/SemaExpr.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3107,7 +3107,9 @@ Sema::PerformObjectMemberConversion(Expr *From,
31073107
/*IgnoreAccess=*/true))
31083108
return ExprError();
31093109

3110-
DestType = Context.getQualifiedType(DestType, FromType.getQualifiers());
3110+
Qualifiers FromTypeQuals = FromType.getQualifiers();
3111+
FromTypeQuals.setAddressSpace(DestType.getAddressSpace());
3112+
DestType = Context.getQualifiedType(DestType, FromTypeQuals);
31113113

31123114
return ImpCastExprToType(From, DestType, CK_UncheckedDerivedToBase, VK,
31133115
&BasePath);

0 commit comments

Comments
 (0)