summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen
diff options
context:
space:
mode:
authorBetul Buyukkurt <betulb@codeaurora.org>2016-01-24 00:56:19 +0000
committerBetul Buyukkurt <betulb@codeaurora.org>2016-01-24 00:56:19 +0000
commit7e15272bbe2e3e3fa3698d8f8fbfa8f3c9557292 (patch)
treee9f9c4568af898759e45f7ce13d9a2b1ee3f3ffa /clang/lib/CodeGen
parentb7d49268c2cf14ed0197232ac859422f1ed89a8a (diff)
downloadbcm5719-llvm-7e15272bbe2e3e3fa3698d8f8fbfa8f3c9557292.tar.gz
bcm5719-llvm-7e15272bbe2e3e3fa3698d8f8fbfa8f3c9557292.zip
[PGO] Windows buildbot failure fix. [NFC]
llvm-svn: 258652
Diffstat (limited to 'clang/lib/CodeGen')
-rw-r--r--clang/lib/CodeGen/CodeGenPGO.h5
1 files changed, 3 insertions, 2 deletions
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 <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
OpenPOWER on IntegriCloud