Skip to content

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
Contributor

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
Contributor

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
Contributor

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
Contributor

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