SPIRV validation error with assign of nullptr
to pointer variable
#4754
Labels
goal:quality & productivity
Quality issues and issues that impact our productivity coding day to day inside slang
kind:bug
something doesn't work like it should
Milestone
Minimal repro:
Produces:
The problem is that
nullptr
is being lowered into a void pointer asOpConvertUToPtr %_ptr_PhysicalStorageBuffer_void %ulong_0
instead of the target pointer type.A workaround is to write
(T*)0
instead of nullptr.The text was updated successfully, but these errors were encountered: