Skip to content

Commit 9401acb

Browse files
committed
[mandatory-inlining] Fix undefined behavior.
1 parent b08d4c3 commit 9401acb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/SILOptimizer/Mandatory/MandatoryInlining.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -502,7 +502,7 @@ static SILValue getLoadedCalleeValue(LoadInst *li) {
502502
}
503503

504504
// Make sure that our project_box has a single store user and our load user.
505-
StoreInst *si;
505+
StoreInst *si = nullptr;
506506
for (Operand *use : pbi->getUses()) {
507507
// If this use is our load... continue.
508508
if (use->getUser() == li)

0 commit comments

Comments
 (0)