[all-commits] [llvm/llvm-project] c05eff: [TableGen][CodeEmitterGen] Avoid empty OpNum switc...

Ilya Leoshkevich via All-commits all-commits at lists.llvm.org
Thu Jul 20 04:29:02 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: c05eff2f92425af8b8a9f279eb73d867d62e0d08
      https://github.com/llvm/llvm-project/commit/c05eff2f92425af8b8a9f279eb73d867d62e0d08
  Author: Ilya Leoshkevich <iii at linux.ibm.com>
  Date:   2023-07-20 (Thu, 20 Jul 2023)

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

  Log Message:
  -----------
  [TableGen][CodeEmitterGen] Avoid empty OpNum switches in getOperandBitOffset()

getOperandBitOffset() causes the following warning on MSVC:

	E:\llvm\ninja\lib\Target\SystemZ\SystemZGenMCCodeEmitter.inc(15414): warning C4060: switch statement contains no 'case' or 'default' labels

Do not emit empty OpNum switches.

Reviewed By: RKSimon, uweigand

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




More information about the All-commits mailing list