[llvm] 861abbe - [Analysis] Fix a warning
Kazu Hirata via llvm-commits
llvm-commits at lists.llvm.org
Tue Jan 17 13:36:11 PST 2023
Author: Kazu Hirata
Date: 2023-01-17T13:36:02-08:00
New Revision: 861abbed4d97a53e1d641e54d00cff1edce6523f
URL: https://github.com/llvm/llvm-project/commit/861abbed4d97a53e1d641e54d00cff1edce6523f
DIFF: https://github.com/llvm/llvm-project/commit/861abbed4d97a53e1d641e54d00cff1edce6523f.diff
LOG: [Analysis] Fix a warning
This patch fixes:
llvm/include/llvm/Analysis/Utils/TrainingLogger.h:94:14: error:
private field 'IncludeReward' is not used
[-Werror,-Wunused-private-field]
Added:
Modified:
llvm/lib/Analysis/TrainingLogger.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Analysis/TrainingLogger.cpp b/llvm/lib/Analysis/TrainingLogger.cpp
index e1cfe54ff31a..b71e7106b2ef 100644
--- a/llvm/lib/Analysis/TrainingLogger.cpp
+++ b/llvm/lib/Analysis/TrainingLogger.cpp
@@ -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); \
}
More information about the llvm-commits
mailing list