File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed
trunk/lib/SILOptimizer/Mandatory Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change 1
1
---
2
- refs/heads/master: 5aeb95af947ad8f696526cb26b319cb01daf0312
2
+ refs/heads/master: ae42c401a5e2484efbfa39c995ea03824abb1356
3
3
refs/heads/master-next: 203b3026584ecad859eb328b2e12490099409cd5
4
4
refs/tags/osx-passed: b6b74147ef8a386f532cf9357a1bde006e552c54
5
5
refs/tags/swift-2.2-SNAPSHOT-2015-12-01-a: 6bb18e013c2284f2b45f5f84f2df2887dc0f7dea
Original file line number Diff line number Diff line change @@ -751,8 +751,9 @@ bool SemanticARCOptVisitor::visitLoadInst(LoadInst *li) {
751
751
if (!isDeadLiveRange (li, destroyValues))
752
752
return false ;
753
753
754
- // Then check if our address is ever written to. If it is, then we
755
- // can not use the load_borrow.
754
+ // Then check if our address is ever written to. If it is, then we cannot use
755
+ // the load_borrow because the stored value may be released during the loaded
756
+ // value's live range.
756
757
if (isWrittenTo (li))
757
758
return false ;
758
759
You can’t perform that action at this time.
0 commit comments