[llvm] 86f564e - [SimplifyCFG] Remove unused variable 'Inc' (NFC)

Jie Fu via llvm-commits llvm-commits at lists.llvm.org
Sun Jun 25 18:00:14 PDT 2023


Author: Jie Fu
Date: 2023-06-26T08:59:37+08:00
New Revision: 86f564edc0d65d1da947a1f03099c57fecb2d865

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

LOG: [SimplifyCFG] Remove unused variable 'Inc' (NFC)

/data/llvm-project/llvm/lib/Transforms/Utils/SimplifyCFG.cpp:6051:10: error: unused variable 'Inc' [-Werror,-Wunused-variable]
    bool Inc, Wrapped = false;
         ^
1 error generated.

Added: 
    

Modified: 
    llvm/lib/Transforms/Utils/SimplifyCFG.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Transforms/Utils/SimplifyCFG.cpp b/llvm/lib/Transforms/Utils/SimplifyCFG.cpp
index de2cc00c17240..5d3bc44e93c5e 100644
--- a/llvm/lib/Transforms/Utils/SimplifyCFG.cpp
+++ b/llvm/lib/Transforms/Utils/SimplifyCFG.cpp
@@ -6048,7 +6048,7 @@ SwitchLookupTable::SwitchLookupTable(
     APInt PrevVal;
     APInt DistToPrev;
     // When linear map is monotonic, we can attach nsw.
-    bool Inc, Wrapped = false;
+    bool Wrapped = false;
     assert(TableSize >= 2 && "Should be a SingleValue table.");
     // Check if there is the same distance between two consecutive values.
     for (uint64_t I = 0; I < TableSize; ++I) {


        


More information about the llvm-commits mailing list