Skip to content

Commit 1fdbbbb

Browse files
Merge pull request #60756 from nate-chandler/rdar99087653
[SILInliner] Handled null access storage base.
2 parents 026b05e + 70213f0 commit 1fdbbbb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/SILOptimizer/Utils/SILInliner.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -462,7 +462,7 @@ void SILInlineCloner::cloneInline(ArrayRef<SILValue> AppliedArgs) {
462462
continue;
463463

464464
auto storage = AccessStorageWithBase::compute(callArg);
465-
if (auto *asi = dyn_cast<AllocStackInst>(storage.base))
465+
if (auto *asi = dyn_cast_or_null<AllocStackInst>(storage.base))
466466
asi->setIsLexical();
467467
} else {
468468
// Insert begin/end borrow for guaranteed arguments.

0 commit comments

Comments
 (0)