Skip to content

[DirectX] Version in ProgramHeader is wrong on big endian host #91793

@python3kgae

Description

@python3kgae

MinorVersion and MajorVersion in llvm::dxbc::ProgramHeader used bitfield.
But the order of allocation of bit-field within a unit is implementation-defined.

Wrong version will be read on big endian host right now.

Metadata

Metadata

Assignees

Type

No type

Projects

Status

No status

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions