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 9ffb35c commit d80e281Copy full SHA for d80e281
lib/SILOptimizer/Mandatory/SemanticARCOpts.cpp
@@ -751,8 +751,9 @@ bool SemanticARCOptVisitor::visitLoadInst(LoadInst *li) {
751
if (!isDeadLiveRange(li, destroyValues))
752
return false;
753
754
- // Then check if our address is ever written to. If it is, then we
755
- // can not use the load_borrow.
+ // Then check if our address is ever written to. If it is, then we cannot use
+ // the load_borrow because the stored value may be released during the loaded
756
+ // value's live range.
757
if (isWrittenTo(li))
758
759
0 commit comments