[all-commits] [llvm/llvm-project] 21fd87: [lld/mac] Fix warning about unused variable [NFC]

mikaelholmen via All-commits all-commits at lists.llvm.org
Thu Jul 8 00:55:21 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 21fd8759529707b0f4430ebe8f27a01edc7f655e
      https://github.com/llvm/llvm-project/commit/21fd8759529707b0f4430ebe8f27a01edc7f655e
  Author: Mikael Holmen <mikael.holmen at ericsson.com>
  Date:   2021-07-08 (Thu, 08 Jul 2021)

  Changed paths:
    M lld/MachO/Driver.cpp

  Log Message:
  -----------
  [lld/mac] Fix warning about unused variable [NFC]

Change "dyn_cast" to "isa" to get rid of the unused
variable "bitcodeFile".

gcc warned with

lld/MachO/Driver.cpp:531:17: warning: unused variable 'bitcodeFile' [-Wunused-variable]
531 |       if (auto *bitcodeFile = dyn_cast<BitcodeFile>(file)) {
    |                 ^~~~~~~~~~~




More information about the All-commits mailing list