[all-commits] [llvm/llvm-project] e4114f: [AttributorAttributes] Remove unused variable [NFC]

mikaelholmen via All-commits all-commits at lists.llvm.org
Fri Sep 29 02:08:44 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: e4114f9c0d2688296993e5d5741b41a20825a6bd
      https://github.com/llvm/llvm-project/commit/e4114f9c0d2688296993e5d5741b41a20825a6bd
  Author: Mikael Holmen <mikael.holmen at ericsson.com>
  Date:   2023-09-29 (Fri, 29 Sep 2023)

  Changed paths:
    M llvm/lib/Transforms/IPO/AttributorAttributes.cpp

  Log Message:
  -----------
  [AttributorAttributes] Remove unused variable [NFC]

gcc warned about it:
 [232/4788] Building CXX object lib/Transforms/IPO/CMakeFiles/LLVMipo.dir/AttributorAttributes.cpp.o
 ../lib/Transforms/IPO/AttributorAttributes.cpp: In lambda function:
 ../lib/Transforms/IPO/AttributorAttributes.cpp:12555:17: warning: unused variable 'SI' [-Wunused-variable]
 12555 |       if (auto *SI = dyn_cast<StoreInst>(Inst)) {
       |                 ^~

Fix the warning by removing the variable and turn dyn_cast into isa.




More information about the All-commits mailing list