[Analysis] Fix a warning
authorKazu Hirata <kazu@google.com>
Tue, 17 Jan 2023 21:36:02 +0000 (13:36 -0800)
committerKazu Hirata <kazu@google.com>
Tue, 17 Jan 2023 21:36:02 +0000 (13:36 -0800)
This patch fixes:

  llvm/include/llvm/Analysis/Utils/TrainingLogger.h:94:14: error:
  private field 'IncludeReward' is not used
  [-Werror,-Wunused-private-field]

llvm/lib/Analysis/TrainingLogger.cpp

index e1cfe54..b71e710 100644 (file)
@@ -209,6 +209,7 @@ Logger::~Logger() {}
 #define LOG_REWARD(NAME, TYPE)                                                 \
   void Logger::log##NAME##Reward(TYPE Value) {                                 \
     assert(IncludeReward);                                                     \
+    (void)IncludeReward;                                                       \
     LoggerData->logReward(Value);                                              \
   }