[all-commits] [llvm/llvm-project] 796feb: [MC][ELF] Fix unused variable warning (NFC)

nullptr-cpp via All-commits all-commits at lists.llvm.org
Wed Feb 17 22:24:04 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 796feb61637c407aefcc0d462f24a1cc41f350d8
      https://github.com/llvm/llvm-project/commit/796feb61637c407aefcc0d462f24a1cc41f350d8
  Author: Yang Fan <nullptr.cpp at gmail.com>
  Date:   2021-02-18 (Thu, 18 Feb 2021)

  Changed paths:
    M llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp

  Log Message:
  -----------
  [MC][ELF] Fix unused variable warning (NFC)

GCC warning:
```
/llvm-project/llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp: In member function ‘virtual llvm::MCSection* llvm::TargetLoweringObjectFileELF::getSectionForLSDA(const llvm::Function&, const llvm::MCSymbol&, const llvm::TargetMachine&) const’:
/llvm-project/llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp:871:8: warning: variable ‘IsComdat’ set but not used [-Wunused-but-set-variable]
  871 |   bool IsComdat = false;
      |        ^~~~~~~~
```




More information about the All-commits mailing list