diff --git a/llvm/tools/llvm-mca/BackendStatistics.h b/llvm/tools/llvm-mca/BackendStatistics.h index f5363bdfb2d9..04fa9125c6c7 100644 --- a/llvm/tools/llvm-mca/BackendStatistics.h +++ b/llvm/tools/llvm-mca/BackendStatistics.h @@ -108,7 +108,7 @@ class BackendStatistics : public View { public: BackendStatistics(const Backend &backend) - : B(backend), NumDispatched(0), NumIssued(0), NumRetired(0) {} + : B(backend), NumDispatched(0), NumIssued(0), NumRetired(0), NumCycles(0) {} void onInstructionDispatched(unsigned Index) override { NumDispatched++; } void