Skip to content

PIX: dxcpdbutils: Don't set default entry name in lib case#4929

Merged
jeffnn merged 3 commits intomicrosoft:mainfrom
jeffnn:PIX_EntryNameForLibAssert
Jan 12, 2023
Merged

PIX: dxcpdbutils: Don't set default entry name in lib case#4929
jeffnn merged 3 commits intomicrosoft:mainfrom
jeffnn:PIX_EntryNameForLibAssert

Conversation

@jeffnn
Copy link
Copy Markdown
Collaborator

@jeffnn jeffnn commented Jan 11, 2023

In the lib case, m_EntryPoint will be non-null but empty, but shouldn't be set anyway.
(Also, not clearing m_EntryPoint first can result in an assert in CComPtr that the poiner is non-null, and then the pointer is overwritten, resulting in a small memory leak.)

@jeffnn jeffnn requested a review from adam-yang January 11, 2023 17:50
@jeffnn jeffnn self-assigned this Jan 11, 2023
@AppVeyorBot
Copy link
Copy Markdown

Comment thread tools/clang/tools/dxcompiler/dxcpdbutils.cpp Outdated
Copy link
Copy Markdown
Contributor

@adam-yang adam-yang left a comment

Choose a reason for hiding this comment

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

LGTM!

@AppVeyorBot
Copy link
Copy Markdown

@jeffnn jeffnn merged commit a8540df into microsoft:main Jan 12, 2023
jeffnn added a commit to jeffnn/DirectXShaderCompiler that referenced this pull request Jan 13, 2023
…#4929)

In the lib case, m_EntryPoint will be non-null but empty, but shouldn't be set anyway.
(Also, not clearing m_EntryPoint first can result in an assert in CComPtr that the poiner is non-null, and then the pointer is overwritten, resulting in a small memory leak.)
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