Skip to content

Commit 01b23d7

Browse files
committed
---
yaml --- r: 348523 b: refs/heads/master c: ae42c40 h: refs/heads/master i: 348521: bf6f743 348519: 39329b0
1 parent 30c9ce5 commit 01b23d7

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
refs/heads/master: 5aeb95af947ad8f696526cb26b319cb01daf0312
2+
refs/heads/master: ae42c401a5e2484efbfa39c995ea03824abb1356
33
refs/heads/master-next: 203b3026584ecad859eb328b2e12490099409cd5
44
refs/tags/osx-passed: b6b74147ef8a386f532cf9357a1bde006e552c54
55
refs/tags/swift-2.2-SNAPSHOT-2015-12-01-a: 6bb18e013c2284f2b45f5f84f2df2887dc0f7dea

trunk/lib/SILOptimizer/Mandatory/SemanticARCOpts.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -751,8 +751,9 @@ bool SemanticARCOptVisitor::visitLoadInst(LoadInst *li) {
751751
if (!isDeadLiveRange(li, destroyValues))
752752
return false;
753753

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.
756757
if (isWrittenTo(li))
757758
return false;
758759

0 commit comments

Comments
 (0)