Skip to content

Commit

Permalink
[FunctionImport] Initialize Reason
Browse files Browse the repository at this point in the history
Otherwise -print-import-failure may use the uninitialized value.
  • Loading branch information
MaskRay committed Aug 28, 2023
1 parent 915139f commit d0580b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion llvm/lib/Transforms/IPO/FunctionImport.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -482,7 +482,7 @@ static void computeImportForFunction(
continue;
}

FunctionImporter::ImportFailureReason Reason;
FunctionImporter::ImportFailureReason Reason{};
CalleeSummary = selectCallee(Index, VI.getSummaryList(), NewThreshold,
Summary.modulePath(), Reason);
if (!CalleeSummary) {
Expand Down

0 comments on commit d0580b8

Please sign in to comment.