Commit 61cfe2f
authored
Reland "[C++ BoundsSafety] Fix false positives when pointer argument is a function call (swiftlang#11046)" (swiftlang#11358) (swiftlang#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)1 parent ab98fa0 commit 61cfe2f
File tree
2 files changed
+257
-128
lines changed- clang
- lib/Analysis
- test/SemaCXX
2 files changed
+257
-128
lines changed
0 commit comments