Skip to content

Commit

Permalink
WholeProgramDevirt - fix uninitialized variable warnings. NFCI.
Browse files Browse the repository at this point in the history
  • Loading branch information
RKSimon committed Nov 14, 2019
1 parent f784ad8 commit 39c0829
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions llvm/lib/Transforms/IPO/WholeProgramDevirt.cpp
Expand Up @@ -616,8 +616,8 @@ struct WholeProgramDevirt : public ModulePass {

bool UseCommandLine = false;

ModuleSummaryIndex *ExportSummary;
const ModuleSummaryIndex *ImportSummary;
ModuleSummaryIndex *ExportSummary = nullptr;
const ModuleSummaryIndex *ImportSummary = nullptr;

WholeProgramDevirt() : ModulePass(ID), UseCommandLine(true) {
initializeWholeProgramDevirtPass(*PassRegistry::getPassRegistry());
Expand Down

0 comments on commit 39c0829

Please sign in to comment.