[llvm] bb037c2 - [ConstraintSystem] Remove local variable that is set but not read [NFC]

Mikael Holmen via llvm-commits llvm-commits at lists.llvm.org
Thu Sep 17 05:29:12 PDT 2020


Author: Mikael Holmen
Date: 2020-09-17T14:26:48+02:00
New Revision: bb037c2a7625d9d13a86b18d9b8b0c75eb8c91cb

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

LOG: [ConstraintSystem] Remove local variable that is set but not read [NFC]

gcc 7.4 warns about it.

Added: 
    

Modified: 
    llvm/lib/Analysis/ConstraintSystem.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Analysis/ConstraintSystem.cpp b/llvm/lib/Analysis/ConstraintSystem.cpp
index 818cfe0a171e..d5b15e7587b3 100644
--- a/llvm/lib/Analysis/ConstraintSystem.cpp
+++ b/llvm/lib/Analysis/ConstraintSystem.cpp
@@ -46,7 +46,6 @@ bool ConstraintSystem::eliminateUsingFM() {
     }
 
     // FIXME do not use copy
-    bool EliminatedInRow = false;
     for (unsigned R2 = R1 + 1; R2 < NumConstraints; R2++) {
       if (R1 == R2)
         continue;
@@ -85,7 +84,6 @@ bool ConstraintSystem::eliminateUsingFM() {
                      .getZExtValue();
       }
       NewSystem.push_back(std::move(NR));
-      EliminatedInRow = true;
     }
   }
   Constraints = std::move(NewSystem);


        


More information about the llvm-commits mailing list