Skip to content
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

[LLVM Analyzer] Called C++ object pointer is null in JetResolution::parameterEtaEval #46071

Closed
iarspider opened this issue Sep 20, 2024 · 6 comments · Fixed by #46073
Closed

Comments

@iarspider
Copy link
Contributor

iarspider commented Sep 20, 2024

LLVM analyzer reports.

If parameter is not found, besides printing error on L182-184, should the function return some special value or should the execution terminate?

@iarspider
Copy link
Contributor Author

assign CondFormats/JetMETObjects

@cmsbuild
Copy link
Contributor

New categories assigned: db

@francescobrivio,@saumyaphor4252,@perrotta,@consuegs you have been requested to review this Pull request/Issue and eventually sign? Thanks

@cmsbuild
Copy link
Contributor

cms-bot internal usage

@cmsbuild
Copy link
Contributor

A new Issue was created by @iarspider.

@Dr15Jones, @antoniovilela, @makortel, @mandrenguyen, @rappoccio, @sextonkennedy, @smuzaffar can you please review it and eventually sign/assign? Thanks.

cms-bot commands are listed here

@perrotta
Copy link
Contributor

If parameter is not found, besides printing error on L182-184, should the function return some special value or should the execution terminate?

@iarspider taking into account that, as far as I remember, such an error never showed up it will quite likely change nothing.
In any case, I think that the logic should be that if the func is not found, one should terminate (maybe with an assert, if you want to get rid of the warning in the LLVM analyzer.
The alternative of putting a default return value (1., for 100% resolution as default?) is leading in my opinion to potential mistakes and unneeded processing of wrong configs if the LogError message remains unnoticed.

@Dr15Jones
Copy link
Contributor

How about throwing an exception?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants