[all-commits] [llvm/llvm-project] e4375b: [X86] Fix warning about unused variable [NFC]

mikaelholmen via All-commits all-commits at lists.llvm.org
Thu Jan 25 02:33:01 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: e4375bf47fafb0cfcb2288ecfad94dfe63ca994c
      https://github.com/llvm/llvm-project/commit/e4375bf47fafb0cfcb2288ecfad94dfe63ca994c
  Author: Mikael Holmen <mikael.holmen at ericsson.com>
  Date:   2024-01-25 (Thu, 25 Jan 2024)

  Changed paths:
    M llvm/lib/Target/X86/X86FixupVectorConstants.cpp

  Log Message:
  -----------
  [X86] Fix warning about unused variable [NFC]

Without this gcc complains like
 ../lib/Target/X86/X86FixupVectorConstants.cpp:70:13: warning: unused variable 'CUndef' [-Wunused-variable]
    70 |   if (auto *CUndef = dyn_cast<UndefValue>(C))
       |             ^~~~~~

Remove the unused variable and change dyn_cast to isa.




More information about the All-commits mailing list