We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dbee0d5 commit fcb2062Copy full SHA for fcb2062
llvm/lib/Support/DebugCounter.cpp
@@ -172,6 +172,11 @@ DebugCounter &DebugCounter::instance() {
172
void DebugCounter::push_back(const std::string &Val) {
173
if (Val.empty())
174
return;
175
+#ifdef NDEBUG
176
+ // isCountingEnabled is hardcoded to false in NDEBUG.
177
+ errs() << "Requested --debug-counter in non-debug LLVM build. This is a "
178
+ "no-op.\n";
179
+#endif
180
181
// The strings should come in as counter=chunk_list
182
auto CounterPair = StringRef(Val).split('=');
0 commit comments