[llvm] 0e691ae - [mlgo][regalloc] Fix -Wunused-variable in -DLLVM_ENABLE_ASSERTIONS=off builds after a8a7bf922cea8af01168f7a4adf4ed0365bcc2b4

Fangrui Song via llvm-commits llvm-commits at lists.llvm.org
Sun Jan 30 15:18:35 PST 2022


Author: Fangrui Song
Date: 2022-01-30T15:18:30-08:00
New Revision: 0e691aed7ee4700d05295cde24e84de3799fade8

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

LOG: [mlgo][regalloc] Fix -Wunused-variable in -DLLVM_ENABLE_ASSERTIONS=off builds after a8a7bf922cea8af01168f7a4adf4ed0365bcc2b4

Added: 
    

Modified: 
    llvm/lib/CodeGen/MLRegallocEvictAdvisor.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/CodeGen/MLRegallocEvictAdvisor.cpp b/llvm/lib/CodeGen/MLRegallocEvictAdvisor.cpp
index f8ba224da7b8..14781ebd424b 100644
--- a/llvm/lib/CodeGen/MLRegallocEvictAdvisor.cpp
+++ b/llvm/lib/CodeGen/MLRegallocEvictAdvisor.cpp
@@ -666,6 +666,7 @@ MCRegister MLEvictAdvisor::tryFindEvictionCandidate(
     return MCRegister::NoRegister;
   }
   assert(CandidatePos < ValidPosLimit);
+  (void)ValidPosLimit;
   return Regs[CandidatePos].first;
 }
 


        


More information about the llvm-commits mailing list