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

Crash with report when call getValue() on operands returns null #355

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

zhengyang92
Copy link
Contributor

No description provided.

@zhengyang92 zhengyang92 changed the title Crashes with report when call getValue() on operands returns null Crash with report when call getValue() on operands returns null Sep 28, 2018
@regehr
Copy link
Collaborator

regehr commented Sep 28, 2018

I think it might be better to add a single check around like 421 of this file

@zhengyang92
Copy link
Contributor Author

zhengyang92 commented Sep 28, 2018

@regehr John, are you saying putting a fatal null check for NewVal in line 421, instead of just reporting and continue?

@regehr
Copy link
Collaborator

regehr commented Sep 28, 2018

I'm just saying that there's already code in the pass (in runOnFunction) to check for failure of getValue() and print something, if we report the fatal error there, it's only one place to change in the code instead of multiple places like this patch currently has

@regehr
Copy link
Collaborator

regehr commented Oct 2, 2018

can you replace this patch with a very small one that hooks into the place where getValue() is originally called, rather than changing getValue() itself?

@regehr
Copy link
Collaborator

regehr commented Oct 3, 2018

hey @manasij7479 coud you look into the failing tests here and see if they stem from pass bugs?

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