Skip to content

C++: ignore iterators that are their own value type#13445

Closed
rdmarsh2 wants to merge 3 commits intogithub:mainfrom
rdmarsh2:rdmarsh2/cpp/ignore-self-iterators
Closed

C++: ignore iterators that are their own value type#13445
rdmarsh2 wants to merge 3 commits intogithub:mainfrom
rdmarsh2:rdmarsh2/cpp/ignore-self-iterators

Conversation

@rdmarsh2
Copy link
Contributor

This fixes a rare case where IR-based data flow won't have appropriate edges for these types.

@rdmarsh2 rdmarsh2 requested a review from a team as a code owner June 13, 2023 17:51
@github-actions github-actions bot added the C++ label Jun 13, 2023
@rdmarsh2
Copy link
Contributor Author

cc @bdrodes who originally reported this

@jketema
Copy link
Contributor

jketema commented Jun 14, 2023

This will need some source file formatting and a DCA experiment. A test case would also be appreciated.

@rdmarsh2 rdmarsh2 force-pushed the rdmarsh2/cpp/ignore-self-iterators branch from bdb5e5d to 6d2418b Compare June 14, 2023 17:52
@MathiasVP
Copy link
Contributor

Hmmm... The comment added here seems relevant:

// We need to avoid the case where `stripPointer(t) = t` (which can happen on

I wonder if there's a better fix somewhere lurking here 🤔

@MathiasVP
Copy link
Contributor

I've opened up an alternative fix that doesn't limit our iterator model: #13515.

@rdmarsh2
Copy link
Contributor Author

Closing in favor of #13515

@rdmarsh2 rdmarsh2 closed this Jun 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants