================
@@ -277,22 +277,27 @@ RValue
CodeGenFunction::EmitCXXMemberOrOperatorMemberCallExpr(
}
}
- LValue This;
- if (IsArrow) {
- LValueBaseInfo BaseInfo;
- TBAAAccessInfo TBAAInfo;
- Address ThisValue = EmitPointerWithAlignment(Base, &BaseInfo, &TBAAInfo);
- This = MakeAddrLValue(ThisValue, Base->getType()->getPointeeType(),
- BaseInfo, TBAAInfo);
- } else {
- This = EmitLValue(Base);
- }
+ auto getLValueForThis = [this, IsArrow,
+ Base](bool EmitCheckedForStore = false) {
+ // FIXME: Respect EmitCheckedForStore for the IsArrow case.
----------------
tonykuttai wrote:
Maybe we can add a test to capture its current behaviour.
https://github.com/llvm/llvm-project/pull/203737
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits