[llvm] 4691405 - Fix a range-loop-analysis warning.

Amara Emerson via llvm-commits llvm-commits at lists.llvm.org
Tue Feb 23 14:41:20 PST 2021


Author: Amara Emerson
Date: 2021-02-23T14:41:08-08:00
New Revision: 4691405ba983d7b1efc3e72d17d09c1a497afe90

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

LOG: Fix a range-loop-analysis warning.

Added: 
    

Modified: 
    llvm/lib/CodeGen/RDFLiveness.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/CodeGen/RDFLiveness.cpp b/llvm/lib/CodeGen/RDFLiveness.cpp
index 0580a3277773..d92c6a997f31 100644
--- a/llvm/lib/CodeGen/RDFLiveness.cpp
+++ b/llvm/lib/CodeGen/RDFLiveness.cpp
@@ -899,7 +899,7 @@ void Liveness::resetLiveIns() {
       B.removeLiveIn(I);
     // Add the newly computed live-ins.
     const RegisterAggr &LiveIns = LiveMap[&B];
-    for (const RegisterRef &R : make_range(LiveIns.rr_begin(), LiveIns.rr_end()))
+    for (const RegisterRef R : make_range(LiveIns.rr_begin(), LiveIns.rr_end()))
       B.addLiveIn({MCPhysReg(R.Reg), R.Mask});
   }
 }


        


More information about the llvm-commits mailing list