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

PIX: Null check before dyn_cast #3654

Merged
merged 1 commit into from
Apr 2, 2021
Merged

Conversation

jeffnn
Copy link
Collaborator

@jeffnn jeffnn commented Apr 1, 2021

dbg.value can occasionally return a null value. (Hit this in a customer (343) shader via PIX.) This is expected. From IntrinsicInst.cpp:

  // When the value goes to null, it gets replaced by an empty MDNode.

@jeffnn jeffnn self-assigned this Apr 1, 2021
@AppVeyorBot
Copy link

@jeffnn jeffnn requested a review from pow2clk April 1, 2021 20:29
Copy link
Member

@pow2clk pow2clk left a comment

Choose a reason for hiding this comment

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

Looks good!

@jeffnn jeffnn merged commit cb48526 into microsoft:master Apr 2, 2021
@jeffnn jeffnn deleted the PIX_nullVariable branch April 2, 2021 00:39
jeffnn pushed a commit to jeffnn/DirectXShaderCompiler that referenced this pull request Apr 2, 2021
dbg.value can occasionally return a null value. (Hit this in a customer (343) shader via PIX.) This is expected. From IntrinsicInst.cpp:

  // When the value goes to null, it gets replaced by an empty MDNode.
jeffnn added a commit that referenced this pull request Apr 2, 2021
dbg.value can occasionally return a null value. (Hit this in a customer (343) shader via PIX.) This is expected. From IntrinsicInst.cpp:

  // When the value goes to null, it gets replaced by an empty MDNode.

Co-authored-by: Jeff Noyle <jeffno@ntdev.microsoft.com>
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.

3 participants