diff --git a/llvm/include/llvm/ADT/Statistic.h b/llvm/include/llvm/ADT/Statistic.h index 082e6d50577fa..795b0c2082c77 100644 --- a/llvm/include/llvm/ADT/Statistic.h +++ b/llvm/include/llvm/ADT/Statistic.h @@ -131,8 +131,8 @@ class TrackingStatistic { class NoopStatistic { public: - NoopStatistic(const char * /*DebugType*/, const char * /*Name*/, - const char * /*Desc*/) {} + constexpr NoopStatistic(const char * /*DebugType*/, const char * /*Name*/, + const char * /*Desc*/) {} uint64_t getValue() const { return 0; }