[PATCH] D69558: [ObjectYAML] - Redefine LLVM_YAML_IS_SEQUENCE_VECTOR(llvm::yaml::Hex*) as LLVM_YAML_IS_FLOW_SEQUENCE_VECTOR.

George Rimar via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Oct 29 05:29:34 PDT 2019


grimar marked an inline comment as done.
grimar added inline comments.


================
Comment at: llvm/test/ObjectYAML/MachO/bogus_load_command.yaml:40
+#CHECK:     PayloadBytes:    [ 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08,
+#CHECK:                        0x09, 0x0A, 0x0B, 0x0C, 0x00, 0x00, 0x00, 0x00 ]
 #CHECK-NOT: LinkEditData:
----------------
jhenderson wrote:
> Not knowing much about Mach-O, I'm slightly concerned that these extra four zeros were never intended and might be highlighting a bug. @alexshap/@seiya etc might have a better idea?
Here is the output without this patch applied:

```
  - cmd:             0xDEADBEEF
    cmdsize:         24
    PayloadBytes:
      - 0x01
      - 0x02
      - 0x03
      - 0x04
      - 0x05
      - 0x06
      - 0x07
      - 0x08
      - 0x09
      - 0x0A
      - 0x0B
      - 0x0C
      - 0x00
      - 0x00
      - 0x00
      - 0x00
...
```

So these bytes were there before my change, but have never been tested/shown in the test case.


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D69558/new/

https://reviews.llvm.org/D69558





More information about the llvm-commits mailing list