Skip to content

[CLAMR] remove unused codes #42

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
Oct 31, 2023
Merged

[CLAMR] remove unused codes #42

merged 1 commit into from
Oct 31, 2023

Conversation

jerryzj
Copy link
Contributor

@jerryzj jerryzj commented Oct 31, 2023

  • The variable "progCL" is a l-value and never get used, but it will cause SEGV when argv (binary file path) is longer than its pre-defined length.

- The variable "progCL" is a l-value and never get used, but it will
cause SEGV when argv (binary file path) is longer than its pre-defined length.

Signed-off-by: Jerry Zhang Jian <[email protected]>
@jerryzj jerryzj requested a review from rengolin October 31, 2023 07:12
@rengolin
Copy link
Member

I can't remember why we created that but I think it's left-over from the time we had to handle with non-reproducible builds. If this still passes the test-suite on all platforms and isn't used, then it's fine to remove.

@jerryzj
Copy link
Contributor Author

jerryzj commented Oct 31, 2023

Yes, we can verify that these codes will be removed by the compiler when we enable optimizations. We encountered a SEGV only in O0.

@jerryzj jerryzj merged commit 2832737 into llvm:main Oct 31, 2023
@jerryzj jerryzj deleted the dev/fix-clamr branch October 31, 2023 09:32
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