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

…ction call (#11046)

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
@ziqingluo-90
Copy link
Author

The PR originally broke the build because it was slightly out of date with next.

@ziqingluo-90
Copy link
Author

@swift-ci test llvm

@ziqingluo-90
Copy link
Author

@swift-ci test

@ziqingluo-90 ziqingluo-90 merged commit 46a1881 into next Sep 10, 2025
0 of 4 checks passed
@ziqingluo-90 ziqingluo-90 deleted the eng/PR-155952016 branch September 10, 2025 00:16
ziqingluo-90 added a commit that referenced this pull request Sep 10, 2025
…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 added a commit that referenced this pull request Sep 11, 2025
…is a function call (#11046)"  (#11358) (#11342)

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)
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.

2 participants