Skip to content

Correct const check for atomic methods#4472

Merged
pow2clk merged 1 commit intomicrosoft:mainfrom
pow2clk:atomicmethodconst
May 24, 2022
Merged

Correct const check for atomic methods#4472
pow2clk merged 1 commit intomicrosoft:mainfrom
pow2clk:atomicmethodconst

Conversation

@pow2clk
Copy link
Copy Markdown
Collaborator

@pow2clk pow2clk commented May 23, 2022

The check for a const destination param for atomic functions mistakenly
encompassed the first param of atomic methods, which is an offset and
can very well be const. This changes the check to account for methods
when relevant.

Adds a test for this and a few other aspects of atomic methods

The check for a const destination param for atomic functions mistakenly
encompassed the first param of atomic methods, which is an offset and
can very well be const. This changes the check to account for methods
when relevant.

Adds a test for this and a few other aspects of atomic methods
@pow2clk pow2clk requested a review from tex3d May 23, 2022 23:49
Copy link
Copy Markdown
Contributor

@tex3d tex3d left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@pow2clk pow2clk enabled auto-merge (squash) May 23, 2022 23:56
@pow2clk pow2clk disabled auto-merge May 24, 2022 00:35
@pow2clk pow2clk merged commit 9cd1f68 into microsoft:main May 24, 2022
@pow2clk pow2clk deleted the atomicmethodconst branch May 24, 2022 00:35
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