[PATCH] D140474: [YAML IO] Check that mapping doesn't contain duplicating keys

Anton Sidorenko via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Dec 21 05:24:36 PST 2022


asi-sc created this revision.
Herald added subscribers: cishida, pengfei, hiraditya, nemanjai, emaste.
Herald added a reviewer: alexander-shaposhnikov.
Herald added a reviewer: jhenderson.
Herald added a reviewer: ributzka.
Herald added a project: All.
asi-sc requested review of this revision.
Herald added subscribers: llvm-commits, MaskRay.
Herald added a project: LLVM.

According to YAML specification keys must be unique for a mapping node:
"The content of a mapping node is an unordered set of key/value node pairs, with
the restriction that each of the keys is unique".


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D140474

Files:
  llvm/lib/Support/YAMLTraits.cpp
  llvm/test/CodeGen/AArch64/GlobalISel/select-int-ext.mir
  llvm/test/CodeGen/ARM/machine-sink-multidef.mir
  llvm/test/CodeGen/PowerPC/jump-tables-collapse-rotate-remove-SrcMI.mir
  llvm/test/CodeGen/PowerPC/mi-peephole.mir
  llvm/test/CodeGen/X86/fixup-bw-inst.mir
  llvm/test/tools/llvm-objcopy/COFF/redefine-symbol.test
  llvm/test/tools/llvm-objcopy/ELF/strip-all-gnu.test
  llvm/test/tools/llvm-reduce/mir/preserve-func-info.mir
  llvm/test/tools/yaml2obj/map_duplicate_key.test
  llvm/test/tools/yaml2obj/map_duplicate_key_2.test
  llvm/unittests/Support/YAMLIOTest.cpp
  llvm/unittests/TextAPI/TextStubV4Tests.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D140474.484544.patch
Type: text/x-patch
Size: 8654 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20221221/2c9b47e2/attachment.bin>


More information about the llvm-commits mailing list