Skip to content

[Driver][NFC] Check pointer Arg before dereferencing.#21287

Open
srividya-sundaram wants to merge 3 commits intointel:syclfrom
srividya-sundaram:optimize-lto-diags
Open

[Driver][NFC] Check pointer Arg before dereferencing.#21287
srividya-sundaram wants to merge 3 commits intointel:syclfrom
srividya-sundaram:optimize-lto-diags

Conversation

@srividya-sundaram
Copy link
Contributor

Addresses: #21282

Arg *SYCLSplitMode =
Args.getLastArg(options::OPT_fsycl_device_code_split_EQ);
Arg *OffloadLTO = Args.getLastArg(options::OPT_foffload_lto,
options::OPT_foffload_lto_EQ);
Copy link
Contributor

Choose a reason for hiding this comment

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

This looks like something that would benefit the community as it isn't specific to SYCL. Would this be better to just upstream instead of doing intel/llvm?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

There are to SYCL specific checks here before some of these diagnostics are emitted (like SYCLSplitMode). Unless I am mis-understanding what you are referring to.

Copy link
Contributor

Choose a reason for hiding this comment

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

Yes, there are SYCL specific things here, but the fix itself can be applied to upstream and be pulled into intel/llvm as it also impacts OpenMP upstream behaviors.

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