[all-commits] [llvm/llvm-project] 19f96a: [DirectX][ObjectYAML] Fix SRCI Names parsing on Bi...

Vladislav Dzhidzhoev via All-commits all-commits at lists.llvm.org
Sat Jun 6 13:23:00 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 19f96a9c433bf268b1ca8aee3eca976591d8a9b8
      https://github.com/llvm/llvm-project/commit/19f96a9c433bf268b1ca8aee3eca976591d8a9b8
  Author: Vladislav Dzhidzhoev <vdzhidzhoev at accesssoftek.com>
  Date:   2026-06-06 (Sat, 06 Jun 2026)

  Changed paths:
    M llvm/lib/Object/DXContainer.cpp

  Log Message:
  -----------
  [DirectX][ObjectYAML] Fix SRCI Names parsing on Big Endian (#202020)

```
Names.Parameters = HeaderOnDisk;
```
converts SRCI Names section header from little endian to platform native
byte order (in converting constructor).
Therefore, extra
```
  if (sys::IsBigEndianHost)
    Names.Parameters.swapBytes();
```
can swap bytes of the header fields again, causing an error on SPARC:
```
SRCI Names section content ends beyond the section boundary
```

Fix that.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list