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 5dc2f44 commit 44a6a44Copy full SHA for 44a6a44
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 LLVM build without assertions. This "
178
+ "is a 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