File tree Expand file tree Collapse file tree 3 files changed +6
-3
lines changed
lib/SILOptimizer/Mandatory Expand file tree Collapse file tree 3 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -169,7 +169,7 @@ inline bool isGuaranteedAddressReturn(SILValue value) {
169
169
if (!defInst) {
170
170
return false ;
171
171
}
172
- return defInst->getSubstCalleeConv (). hasGuaranteedAddressResult ();
172
+ return defInst->hasGuaranteedAddressResult ();
173
173
}
174
174
175
175
// / Return the source address after stripping as many access projections as
Original file line number Diff line number Diff line change @@ -3150,7 +3150,10 @@ class ApplyInst final
3150
3150
3151
3151
public:
3152
3152
bool hasGuaranteedResult () const {
3153
- return getSubstCalleeConv ().hasGuaranteedResult ();
3153
+ return getSubstCalleeConv ().hasGuaranteedResult ();
3154
+ }
3155
+ bool hasGuaranteedAddressResult () const {
3156
+ return getSubstCalleeConv ().hasGuaranteedAddressResult ();
3154
3157
}
3155
3158
};
3156
3159
Original file line number Diff line number Diff line change @@ -1115,7 +1115,7 @@ addressBeginsInitialized(MarkUnresolvedNonCopyableValueInst *address) {
1115
1115
1116
1116
if (auto *applyInst = dyn_cast_or_null<ApplyInst>(
1117
1117
stripAccessMarkers (operand)->getDefiningInstruction ())) {
1118
- if (applyInst->getSubstCalleeConv (). hasGuaranteedAddressResult ()) {
1118
+ if (applyInst->hasGuaranteedAddressResult ()) {
1119
1119
LLVM_DEBUG (llvm::dbgs () << " Adding apply as init!\n " );
1120
1120
return true ;
1121
1121
}
You can’t perform that action at this time.
0 commit comments