[all-commits] [llvm/llvm-project] 442e9e: [X86][NFC] MnemonicTables: only access RI fields i...

Amir Ayupov via All-commits all-commits at lists.llvm.org
Mon Mar 21 09:25:41 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 442e9e1389b51ffb7abd8f59858d92954e53aa90
      https://github.com/llvm/llvm-project/commit/442e9e1389b51ffb7abd8f59858d92954e53aa90
  Author: Amir Ayupov <aaupov at fb.com>
  Date:   2022-03-21 (Mon, 21 Mar 2022)

  Changed paths:
    M llvm/utils/TableGen/X86MnemonicTables.cpp

  Log Message:
  -----------
  [X86][NFC] MnemonicTables: only access RI fields if they're initialized

Fix an issue reported by UBSan.

Test Plan:
Configure with `-DLLVM_USE_SANITIZER="Address;Undefined"`
`ninja llc`

Differential Revision: https://reviews.llvm.org/D122140




More information about the All-commits mailing list