Skip to content

Correct exception handler sprintf for 32-bit#3608

Merged
pow2clk merged 1 commit intomicrosoft:masterfrom
pow2clk:except32_fix
Mar 19, 2021
Merged

Correct exception handler sprintf for 32-bit#3608
pow2clk merged 1 commit intomicrosoft:masterfrom
pow2clk:except32_fix

Conversation

@pow2clk
Copy link
Copy Markdown
Collaborator

@pow2clk pow2clk commented Mar 19, 2021

The size of ULONG_PTR varies based on the address size of the
architecture. For 32-bit systems, it was invalid to treat it like a
64-bit value. By casting the value to a void pointer and changing the
print code to %p, we get the right thing for all platforms

The size of ULONG_PTR varies based on the address size of the
architecture. For 32-bit systems, it was invalid to treat it like a
64-bit value. By casting the value to a void pointer and changing the
print code to %p, we get the right thing for all platforms
@pow2clk pow2clk requested a review from hekota March 19, 2021 18:34
@AppVeyorBot
Copy link
Copy Markdown

Copy link
Copy Markdown
Member

@hekota hekota left a comment

Choose a reason for hiding this comment

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

LGTM!

@pow2clk pow2clk merged commit 0e89206 into microsoft:master Mar 19, 2021
@pow2clk pow2clk deleted the except32_fix branch March 19, 2021 20:55
tex3d pushed a commit to tex3d/DirectXShaderCompiler that referenced this pull request Mar 22, 2021
The size of ULONG_PTR varies based on the address size of the
architecture. For 32-bit systems, it was invalid to treat it like a
64-bit value. By casting the value to a void pointer and changing the
print code to %p, we get the right thing for all platforms

(cherry picked from commit 0e89206)
tex3d added a commit that referenced this pull request Mar 23, 2021
Cherry-pick changes to release branch:
cd3ef21 Roll back llvm::ArrayRef dependency in ExecutionTest (#3613)
2791c51 Generate descriptions for resources with no names (#3598)
22fa209 Fix LifetimeIntrinsicTest issues (#3609)
2039610 Fix Dxil validator compat and test issues (#3610)
220e884 Rename payload qualifier field to not match type (#3607)
0e89206 Correct exception handler sprintf for 32-bit (#3608)
9b475a7 Add dxc exception handler (#3604)
e8372b9 Fixed arg pairs not correct for old source in module pdbs (#3599)
2bda44f Add constant evaluation for clamp() (#3581)
640c9af Added way for caller to replace args in PDB utils (#3595)
de00b01 Fix const error check for object subscript operator (#3580)
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