summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CodeGenPGO.h
diff options
context:
space:
mode:
authorSimon Pilgrim <llvm-dev@redking.me.uk>2019-10-02 21:05:21 +0000
committerSimon Pilgrim <llvm-dev@redking.me.uk>2019-10-02 21:05:21 +0000
commit426078a78182881a75d817fc48008cf7af95fe25 (patch)
treebed4b899afea1c0c07f84a95748334660eec9e8b /clang/lib/CodeGen/CodeGenPGO.h
parentf2805470e61d3641ebbe7b03b138a06953a08e5a (diff)
downloadbcm5719-llvm-426078a78182881a75d817fc48008cf7af95fe25.tar.gz
bcm5719-llvm-426078a78182881a75d817fc48008cf7af95fe25.zip
Fix uninitialized variable warning in CodeGenPGO constructor. NFCI.
llvm-svn: 373526
Diffstat (limited to 'clang/lib/CodeGen/CodeGenPGO.h')
-rw-r--r--clang/lib/CodeGen/CodeGenPGO.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/CodeGen/CodeGenPGO.h b/clang/lib/CodeGen/CodeGenPGO.h
index 2e740f78924..a3778b54991 100644
--- a/clang/lib/CodeGen/CodeGenPGO.h
+++ b/clang/lib/CodeGen/CodeGenPGO.h
@@ -41,8 +41,8 @@ private:
public:
CodeGenPGO(CodeGenModule &CGM)
- : CGM(CGM), NumValueSites({{0}}), NumRegionCounters(0), FunctionHash(0),
- CurrentRegionCount(0) {}
+ : CGM(CGM), FuncNameVar(nullptr), NumValueSites({{0}}),
+ NumRegionCounters(0), FunctionHash(0), CurrentRegionCount(0) {}
/// Whether or not we have PGO region data for the current function. This is
/// false both when we have no data at all and when our data has been
OpenPOWER on IntegriCloud