[all-commits] [llvm/llvm-project] 02eb38: [SCEVExpander] Remove unused variable [NFC]

mikaelholmen via All-commits all-commits at lists.llvm.org
Fri Sep 29 01:38:12 PDT 2023


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

  Changed paths:
    M llvm/lib/Transforms/Utils/ScalarEvolutionExpander.cpp

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

gcc warned about it:
 ../lib/Transforms/Utils/ScalarEvolutionExpander.cpp: In lambda function:
 ../lib/Transforms/Utils/ScalarEvolutionExpander.cpp:2104:22: warning: unused variable 'ARPtrTy' [-Wunused-variable]
  2104 |     if (PointerType *ARPtrTy = dyn_cast<PointerType>(ARTy)) {
       |                      ^~~~~~~
Fix the warning by removing the variable and turn dyn_cast into isa.




More information about the All-commits mailing list