Skip to content

Commit

Permalink
Fix unused function warning in StatisticTest.cpp
Browse files Browse the repository at this point in the history
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@327015 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
dsandersllvm committed Mar 8, 2018
1 parent 2f86ce8 commit ec47f70
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions unittests/ADT/StatisticTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ namespace {
STATISTIC(Counter, "Counts things");
STATISTIC(Counter2, "Counts other things");

#if LLVM_ENABLE_STATS
static void
extractCounters(const std::vector<std::pair<StringRef, unsigned>> &Range,
OptionalStatistic &S1, OptionalStatistic &S2) {
Expand All @@ -29,6 +30,7 @@ extractCounters(const std::vector<std::pair<StringRef, unsigned>> &Range,
S2 = S;
}
}
#endif

TEST(StatisticTest, Count) {
EnableStatistics();
Expand Down

0 comments on commit ec47f70

Please sign in to comment.