Skip to content

Commit 95ddef5

Browse files
committed
Fix JSON serialization of ConstraintSolver statistics
1 parent b9570ee commit 95ddef5

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

lib/Sema/CSSolver.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,19 +28,18 @@ using namespace constraints;
2828
// Constraint solver statistics
2929
//===----------------------------------------------------------------------===//
3030
#define DEBUG_TYPE "Constraint solver overall"
31-
#define JOIN(X,Y) JOIN2(X,Y)
3231
#define JOIN2(X,Y) X##Y
3332
STATISTIC(NumSolutionAttempts, "# of solution attempts");
3433
STATISTIC(TotalNumTypeVariables, "# of type variables created");
3534

3635
#define CS_STATISTIC(Name, Description) \
37-
STATISTIC(JOIN2(Overall,Name), Description);
36+
STATISTIC(Overall##Name, Description);
3837
#include "ConstraintSolverStats.def"
3938

4039
#undef DEBUG_TYPE
4140
#define DEBUG_TYPE "Constraint solver largest system"
4241
#define CS_STATISTIC(Name, Description) \
43-
STATISTIC(JOIN2(Largest,Name), Description);
42+
STATISTIC(Largest##Name, Description);
4443
#include "ConstraintSolverStats.def"
4544
STATISTIC(LargestSolutionAttemptNumber, "# of the largest solution attempt");
4645

0 commit comments

Comments
 (0)