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.
1 parent 8c1231e commit 9e4fa8fCopy full SHA for 9e4fa8f
lib/SILOptimizer/Mandatory/MoveOnlyAddressCheckerUtils.cpp
@@ -1113,6 +1113,14 @@ addressBeginsInitialized(MarkUnresolvedNonCopyableValueInst *address) {
1113
return true;
1114
}
1115
1116
+ if (auto *applyInst = dyn_cast_or_null<ApplyInst>(
1117
+ stripAccessMarkers(operand)->getDefiningInstruction())) {
1118
+ if (applyInst->getSubstCalleeConv().hasGuaranteedAddressResults()) {
1119
+ LLVM_DEBUG(llvm::dbgs() << "Adding apply as init!\n");
1120
+ return true;
1121
+ }
1122
1123
+
1124
if (isa<UncheckedTakeEnumDataAddrInst>(stripAccessMarkers(operand))) {
1125
LLVM_DEBUG(llvm::dbgs()
1126
<< "Adding enum projection as init!\n");
0 commit comments