File tree Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -250,12 +250,22 @@ class TypeLowering {
250
250
// / convention?
251
251
// /
252
252
// / This is independent of whether the SIL argument is address type.
253
- bool isFormallyPassedIndirectly () const { return isAddressOnly (); }
253
+ bool isFormallyPassedIndirectly () const {
254
+ assert (!isResilient () ||
255
+ getResilienceExpansion () == ResilienceExpansion::Minimal &&
256
+ " calling convention uses minimal resilience expansion" );
257
+ return isAddressOnly ();
258
+ }
254
259
255
260
// / Are r-values of this type returned indirectly by formal convention?
256
261
// /
257
262
// / This is independent of whether the SIL result is address type.
258
- bool isFormallyReturnedIndirectly () const { return isAddressOnly (); }
263
+ bool isFormallyReturnedIndirectly () const {
264
+ assert (!isResilient () ||
265
+ getResilienceExpansion () == ResilienceExpansion::Minimal &&
266
+ " calling convention uses minimal resilience expansion" );
267
+ return isAddressOnly ();
268
+ }
259
269
260
270
RecursiveProperties getRecursiveProperties () const {
261
271
return Properties;
You can’t perform that action at this time.
0 commit comments