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.
Differential D155805
[TableGen][CodeEmitterGen] Avoid empty OpNum switches in getOperandBitOffset() iii on Jul 20 2023, 2:17 AM. Authored by
Details 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.
Diff Detail
Event TimelineComment Actions LGTM. As this is fixing a build failure on some platforms, please go ahead and commit. Comment Actions Sorry, this just replaces the warning with: warning C4065: switch statement contains 'default' but no 'case' labels You're going to have to avoid emitting empty cases entirely. |