Skip to content

Conversation

ziqingluo-90
Copy link

When the pointer argument passing to a counted_by parameter is a function call returning a counted_by pointer, in order to check the compatibility with respect to their counted_by attributes, the compiler need to compare two expressions, which both have references to parameters that need substitutions.

This commit is to generalize the compatibility checking to allow both comparands to be accompanied by substitution maps.

rdar://155952016
(cherry picked from commit 972f834)

@ziqingluo-90
Copy link
Author

@swift-ci test llvm

…is a function call (#11046)"  (#11358)

When the pointer argument passing to a counted_by parameter is a
function call returning a counted_by pointer, in order to check the
compatibility with respect to their counted_by attributes, the
compiler need to compare two expressions, which both have references
to parameters that need substitutions.

This commit is to generalize the compatibility checking to allow both
comparands to be accompanied by substitution maps.

rdar://155952016
(cherry picked from commit 46a1881)
@ziqingluo-90 ziqingluo-90 force-pushed the ziqing/cherrypick-155952016-stable-21.x branch from 4d0d387 to 29bae29 Compare September 10, 2025 17:46
@ziqingluo-90
Copy link
Author

@swift-ci test llvm

@ziqingluo-90 ziqingluo-90 merged commit 61cfe2f into stable/21.x Sep 11, 2025
2 checks passed
@ziqingluo-90 ziqingluo-90 deleted the ziqing/cherrypick-155952016-stable-21.x branch September 11, 2025 20:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant