Skip to content

Conversation

@schittir
Copy link
Contributor

@schittir schittir commented Sep 7, 2022

Klocwork thinks that it is possible for 'Fn' to be a nullptr due to this
check but there's already an assert at the beginning of
CodeGenFunction::GenerateCode to avoid that possibility.

Klocwork thinks that it is possible for 'Fn' to be a nullptr due to this
check but there's already an assert at the beginning of
CodeGenFunction::GenerateCode to avoid that possibility.
https://reviews.llvm.org/D115817
@schittir schittir requested a review from a team as a code owner September 7, 2022 21:54
Copy link
Contributor

@premanandrao premanandrao left a comment

Choose a reason for hiding this comment

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

I would mark the change with [NFC] in the title.
Is the reference to the community change to show which changeset the assert was added in? I found it confusing and would suggest removing it.

Code change itself looks good.

@schittir schittir changed the title Remove unnecessary NULL check for 'Fn' [NFC] Remove unnecessary NULL check for 'Fn' Sep 7, 2022
@schittir
Copy link
Contributor Author

schittir commented Sep 7, 2022

I would mark the change with [NFC] in the title. Is the reference to the community change to show which changeset the assert was added in? I found it confusing and would suggest removing it.

Code change itself looks good.

Done.

@schittir schittir changed the title [NFC] Remove unnecessary NULL check for 'Fn' [SYCL][NFC] Remove unnecessary NULL check for 'Fn' Sep 8, 2022
@steffenlarsen steffenlarsen merged commit 3f2403b into intel:sycl Sep 8, 2022
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.

6 participants