From 7e15272bbe2e3e3fa3698d8f8fbfa8f3c9557292 Mon Sep 17 00:00:00 2001 From: Betul Buyukkurt Date: Sun, 24 Jan 2016 00:56:19 +0000 Subject: [PGO] Windows buildbot failure fix. [NFC] llvm-svn: 258652 --- clang/lib/CodeGen/CodeGenPGO.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'clang/lib/CodeGen') diff --git a/clang/lib/CodeGen/CodeGenPGO.h b/clang/lib/CodeGen/CodeGenPGO.h index a181cb958c7..ccda5759e67 100644 --- a/clang/lib/CodeGen/CodeGenPGO.h +++ b/clang/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 -- cgit v1.2.3