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 {
250250 // / convention?
251251 // /
252252 // / 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+ }
254259
255260 // / Are r-values of this type returned indirectly by formal convention?
256261 // /
257262 // / 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+ }
259269
260270 RecursiveProperties getRecursiveProperties () const {
261271 return Properties;
You can’t perform that action at this time.
0 commit comments