r258652 - [PGO] Windows buildbot failure fix. [NFC]
Betul Buyukkurt via cfe-commits
cfe-commits at lists.llvm.org
Sat Jan 23 16:56:19 PST 2016
Author: betulb
Date: Sat Jan 23 18:56:19 2016
New Revision: 258652
URL: http://llvm.org/viewvc/llvm-project?rev=258652&view=rev
Log:
[PGO] Windows buildbot failure fix. [NFC]
Modified:
cfe/trunk/lib/CodeGen/CodeGenPGO.h
Modified: cfe/trunk/lib/CodeGen/CodeGenPGO.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CodeGenPGO.h?rev=258652&r1=258651&r2=258652&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/CodeGenPGO.h (original)
+++ cfe/trunk/lib/CodeGen/CodeGenPGO.h Sat Jan 23 18:56:19 2016
@@ -21,6 +21,7 @@
#include "llvm/ADT/StringMap.h"
#include "llvm/ProfileData/InstrProfReader.h"
#include "llvm/Support/MemoryBuffer.h"
+#include <array>
#include <memory>
namespace clang {
@@ -33,7 +34,7 @@ private:
std::string FuncName;
llvm::GlobalVariable *FuncNameVar;
- unsigned NumValueSites[llvm::IPVK_Last + 1];
+ std::array <unsigned, llvm::IPVK_Last + 1> NumValueSites;
unsigned NumRegionCounters;
uint64_t FunctionHash;
std::unique_ptr<llvm::DenseMap<const Stmt *, unsigned>> 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
More information about the cfe-commits
mailing list