Skip to content

[ESIMD] Fix potential accesses on nullptr reported by static verifier #6383

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 1, 2022

Conversation

v-klochkov
Copy link
Contributor

Some places in LowerESIMD pass had assert statements preventing from
access data referenced by nullptr. Those places were reported by
static verfier for RELEASE build because 'assert' is NOP there.

The fix calls llvm::report_fatal_error if the condition is not met.

Also, the fix adds a missing copyright comment section to one of files
created reacently.

Signed-off-by: Vyacheslav N Klochkov [email protected]

@v-klochkov v-klochkov requested a review from a team as a code owner June 30, 2022 21:36
@v-klochkov v-klochkov force-pushed the esimd_verification_errors branch from 73c82d5 to 6ab6c14 Compare June 30, 2022 22:13
Some places in LowerESIMD pass had assert statements preventing from
access data referenced by nullptr. Those places were reported by
static verfier for RELEASE build because 'assert' is NOP there.

The fix calls llvm::report_fatal_error if the condition is not met.

Also, the fix adds a missing copyright comment section to one of files
created reacently.

Signed-off-by: Vyacheslav N Klochkov <[email protected]>
@v-klochkov v-klochkov merged commit d291f77 into intel:sycl Jul 1, 2022
@v-klochkov v-klochkov deleted the esimd_verification_errors branch July 1, 2022 19:02
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.

3 participants