[llvm] 510402c - [NFC][MLGO] 'Use' variable used for asserts

Mircea Trofin via llvm-commits llvm-commits at lists.llvm.org
Tue Aug 10 19:55:43 PDT 2021


Author: Mircea Trofin
Date: 2021-08-10T19:55:17-07:00
New Revision: 510402c2c87e6daaf0edf6ef66679037704b7c97

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

LOG: [NFC][MLGO] 'Use' variable used for asserts

Added: 
    

Modified: 
    llvm/lib/Analysis/TFUtils.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Analysis/TFUtils.cpp b/llvm/lib/Analysis/TFUtils.cpp
index 8663c7e3a7f0..dcc5e9712edd 100644
--- a/llvm/lib/Analysis/TFUtils.cpp
+++ b/llvm/lib/Analysis/TFUtils.cpp
@@ -309,6 +309,7 @@ class LoggerDataImpl {
   // flush the logged info to a stream and clear the log contents.
   void flush(raw_ostream &OS) {
     size_t NrRecords = getNrRecords();
+    (void)NrRecords;
     tensorflow::SequenceExample SE;
     transferLog(SE);
     assert(isSelfConsistent(SE, NrRecords));


        


More information about the llvm-commits mailing list