[llvm] 1ed2e9b - [NFC] Remove variable that was set but not used.

Stefan Pintilie via llvm-commits llvm-commits at lists.llvm.org
Wed Jun 2 11:35:22 PDT 2021


Author: Stefan Pintilie
Date: 2021-06-02T13:20:32-05:00
New Revision: 1ed2e9b9a02f9cde9108233c045edde0d5893f34

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

LOG: [NFC] Remove variable that was set but not used.

The buildbot ppc64le-lld-multistage-test has been failing because the variable
Tag in Waymaking.h is set but not used. This patch removes that varaible.

Added: 
    

Modified: 
    llvm/include/llvm/ADT/Waymarking.h

Removed: 
    


################################################################################
diff  --git a/llvm/include/llvm/ADT/Waymarking.h b/llvm/include/llvm/ADT/Waymarking.h
index f00bc106938f..2efbc6f05495 100644
--- a/llvm/include/llvm/ADT/Waymarking.h
+++ b/llvm/include/llvm/ADT/Waymarking.h
@@ -249,11 +249,8 @@ void fillWaymarks(TIter Begin, TIter End, size_t Offset = 0) {
     do {
       ++Off;
 
-      unsigned Tag = Count & Marker::Traits::MARK_MASK;
-
       // If the count can fit into the tag, then the counting must stop.
       if (Count <= Marker::Traits::MARK_MASK) {
-        Tag |= Marker::Traits::STOP_MASK;
         Count = Off;
       } else
         Count >>= Marker::Traits::MARK_SIZE;


        


More information about the llvm-commits mailing list