[llvm] 39d348c - [NFCI] Fix set-but-unused warning in DenseMap.h in some configurations
Dávid Bolvanský via llvm-commits
llvm-commits at lists.llvm.org
Fri Mar 25 09:13:15 PDT 2022
Author: Dávid Bolvanský
Date: 2022-03-25T17:12:53+01:00
New Revision: 39d348c602f08da2505d51f3b224f4ff057207db
URL: https://github.com/llvm/llvm-project/commit/39d348c602f08da2505d51f3b224f4ff057207db
DIFF: https://github.com/llvm/llvm-project/commit/39d348c602f08da2505d51f3b224f4ff057207db.diff
LOG: [NFCI] Fix set-but-unused warning in DenseMap.h in some configurations
Added:
Modified:
llvm/include/llvm/ADT/DenseMap.h
Removed:
################################################################################
diff --git a/llvm/include/llvm/ADT/DenseMap.h b/llvm/include/llvm/ADT/DenseMap.h
index 7673b66ca42a0..c14414c46419c 100644
--- a/llvm/include/llvm/ADT/DenseMap.h
+++ b/llvm/include/llvm/ADT/DenseMap.h
@@ -137,6 +137,7 @@ class DenseMapBase : public DebugEpochBase {
}
}
assert(NumEntries == 0 && "Node count imbalance!");
+ (void)NumEntries;
}
setNumEntries(0);
setNumTombstones(0);
More information about the llvm-commits
mailing list