Skip to content

SER test files fail validation when compiled with -Od #7387

@jeffnn

Description

@jeffnn

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

Environment

  • DXC version: dxcompiler.dll: 1.9 - 1.8.0.14709 (main, 0e7591a); dxil.dll: 1.9(1.8.0.14709)
  • Host Operating System: 23H2 22635.5305

Metadata

Metadata

Assignees

Labels

bugBug, regression, crashneeds-triageAwaiting triage

Type

No type

Projects

Status

Triaged

Relationships

None yet

Development

No branches or pull requests

Issue actions