From 4a8c99005db4607bd9ba2d1bca45eb7bd70a4d21 Mon Sep 17 00:00:00 2001 From: Betul Buyukkurt Date: Sun, 24 Jan 2016 00:56:19 +0000 Subject: [PATCH] [PGO] Windows buildbot failure fix. [NFC] git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@258652 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/CodeGen/CodeGenPGO.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/CodeGen/CodeGenPGO.h b/lib/CodeGen/CodeGenPGO.h index a181cb958c..ccda5759e6 100644 --- a/lib/CodeGen/CodeGenPGO.h +++ b/lib/CodeGen/CodeGenPGO.h @@ -21,6 +21,7 @@ #include "llvm/ADT/StringMap.h" #include "llvm/ProfileData/InstrProfReader.h" #include "llvm/Support/MemoryBuffer.h" +#include #include namespace clang { @@ -33,7 +34,7 @@ private: std::string FuncName; llvm::GlobalVariable *FuncNameVar; - unsigned NumValueSites[llvm::IPVK_Last + 1]; + std::array NumValueSites; unsigned NumRegionCounters; uint64_t FunctionHash; std::unique_ptr> RegionCounterMap; @@ -47,7 +48,7 @@ private: public: CodeGenPGO(CodeGenModule &CGM) - : CGM(CGM), NumValueSites{0}, NumRegionCounters(0), + : CGM(CGM), NumValueSites({{0}}), NumRegionCounters(0), FunctionHash(0), CurrentRegionCount(0), SkipCoverageMapping(false) {} /// Whether or not we have PGO region data for the current function. This is -- 2.40.0