SER test files fail validation when compiled with -Od
Open
jeffnn
opened this issue 1 year ago
•
1 comments
Description
I compiled a couple of the existing SER test hlsl files with -Od (they are all currently invoked with -O3).
dxc produces validation errors that are not shown when -O3 is used.
Steps to Reproduce
dxc.exe -T lib_6_9 -Od \tools\clang\test\CodeGenDXIL\hlsl\intrinsics\maybereorder.hlsl
error: validation errors
error: Declaration '%dx.types.HitObject = type { i8* }' uses a reserved prefix.
error: Pointers to pointers, or pointers in structures are not allowed.
error: Declaration '%dx.types.HitObject = type { i8* }' uses a reserved prefix.
error: Pointers to pointers, or pointers in structures are not allowed.
error: Declaration '%dx.types.HitObject = type { i8* }' uses a reserved prefix.
error: Pointers to pointers, or pointers in structures are not allowed.
error: Declaration '%dx.types.HitObject = type { i8* }' uses a reserved prefix.
error: Pointers to pointers, or pointers in structures are not allowed.
Validation failed.
Actual Behavior
Expected no validation errors, as is the case when -O3 is used instead of -Od