[all-commits] [llvm/llvm-project] df8795: [CSKY] Fix warning in CSKYMCCodeEmitter::getImmJMPIX.

Jim Lin via All-commits all-commits at lists.llvm.org
Thu Oct 3 23:00:12 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: df8795c082100cf9f63cd73db1d8bfabd2d5d710
      https://github.com/llvm/llvm-project/commit/df8795c082100cf9f63cd73db1d8bfabd2d5d710
  Author: Jim Lin <jim at andestech.com>
  Date:   2024-10-04 (Fri, 04 Oct 2024)

  Changed paths:
    M llvm/lib/Target/CSKY/MCTargetDesc/CSKYMCCodeEmitter.cpp

  Log Message:
  -----------
  [CSKY] Fix warning in CSKYMCCodeEmitter::getImmJMPIX.

Use llvm_unreachable instead of assert and replace if-else with switch-case.

Fix https://github.com/llvm/llvm-project/issues/97456.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list