Skip to content

Commit d0580b8

Browse files
committed
[FunctionImport] Initialize Reason
Otherwise -print-import-failure may use the uninitialized value.
1 parent 915139f commit d0580b8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Transforms/IPO/FunctionImport.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -482,7 +482,7 @@ static void computeImportForFunction(
482482
continue;
483483
}
484484

485-
FunctionImporter::ImportFailureReason Reason;
485+
FunctionImporter::ImportFailureReason Reason{};
486486
CalleeSummary = selectCallee(Index, VI.getSummaryList(), NewThreshold,
487487
Summary.modulePath(), Reason);
488488
if (!CalleeSummary) {

0 commit comments

Comments
 (0)