We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 026b05e + 70213f0 commit 1fdbbbbCopy full SHA for 1fdbbbb
lib/SILOptimizer/Utils/SILInliner.cpp
@@ -462,7 +462,7 @@ void SILInlineCloner::cloneInline(ArrayRef<SILValue> AppliedArgs) {
462
continue;
463
464
auto storage = AccessStorageWithBase::compute(callArg);
465
- if (auto *asi = dyn_cast<AllocStackInst>(storage.base))
+ if (auto *asi = dyn_cast_or_null<AllocStackInst>(storage.base))
466
asi->setIsLexical();
467
} else {
468
// Insert begin/end borrow for guaranteed arguments.
0 commit comments