[clang] [clang][Sema] Propagate qualifiers during derived-to-base conversion (PR #127824)
Antonio Frighetto via cfe-commits
cfe-commits at lists.llvm.org
Thu Feb 27 03:44:15 PST 2025
================
@@ -3107,8 +3107,12 @@ Sema::PerformObjectMemberConversion(Expr *From,
/*IgnoreAccess=*/true))
return ExprError();
- return ImpCastExprToType(From, DestType, CK_UncheckedDerivedToBase,
- VK, &BasePath);
+ Qualifiers FromTypeQuals = FromType.getQualifiers();
----------------
antoniofrighetto wrote:
Added, thanks!
https://github.com/llvm/llvm-project/pull/127824
More information about the cfe-commits
mailing list