[llvm] ff0c1f2 - [CodeGen] Remove unused variables in TargetLoweringBase.cpp (NFC)

Jie Fu via llvm-commits llvm-commits at lists.llvm.org
Thu Jan 4 02:47:36 PST 2024


Author: Jie Fu
Date: 2024-01-04T18:45:55+08:00
New Revision: ff0c1f20a744b93ab8a9f8b378c5225cf3f4f68f

URL: https://github.com/llvm/llvm-project/commit/ff0c1f20a744b93ab8a9f8b378c5225cf3f4f68f
DIFF: https://github.com/llvm/llvm-project/commit/ff0c1f20a744b93ab8a9f8b378c5225cf3f4f68f.diff

LOG: [CodeGen] Remove unused variables in TargetLoweringBase.cpp (NFC)

llvm-project/llvm/lib/CodeGen/TargetLoweringBase.cpp:570:12: error: unused variable 'ModeN' [-Werror,-Wunused-variable]
  570 |   unsigned ModeN, ModelN;
      |            ^~~~~
llvm-project/llvm/lib/CodeGen/TargetLoweringBase.cpp:570:19: error: unused variable 'ModelN' [-Werror,-Wunused-variable]
  570 |   unsigned ModeN, ModelN;
      |                   ^~~~~~
2 errors generated.

Added: 
    

Modified: 
    llvm/lib/CodeGen/TargetLoweringBase.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/CodeGen/TargetLoweringBase.cpp b/llvm/lib/CodeGen/TargetLoweringBase.cpp
index acbbfd9ddaf52d..e92e3cd043918f 100644
--- a/llvm/lib/CodeGen/TargetLoweringBase.cpp
+++ b/llvm/lib/CodeGen/TargetLoweringBase.cpp
@@ -567,7 +567,6 @@ RTLIB::Libcall RTLIB::getOutlineAtomicHelper(const Libcall (&LC)[5][4],
 
 RTLIB::Libcall RTLIB::getOUTLINE_ATOMIC(unsigned Opc, AtomicOrdering Order,
                                         MVT VT) {
-  unsigned ModeN, ModelN;
   if (!VT.isScalarInteger())
     return UNKNOWN_LIBCALL;
   uint64_t MemSize = VT.getScalarSizeInBits() / 8;


        


More information about the llvm-commits mailing list