Skip to content

Commit 26f3731

Browse files
authored
Merge pull request #26790 from gottesmm/pr-d1020e7d823eb26f201c3e78a39396514590a77e
2 parents ca49d23 + d95ec67 commit 26f3731

File tree

3 files changed

+438
-2
lines changed

3 files changed

+438
-2
lines changed

lib/SILOptimizer/Mandatory/SemanticARCOpts.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -369,7 +369,7 @@ static bool isWrittenTo(SILFunction &f, SILValue value) {
369369
// conservative and assume that the value is written to.
370370
const auto &storage = findAccessedStorageNonNested(value);
371371
if (!storage)
372-
return false;
372+
return true;
373373

374374
// Then see if we ever write to this address in a flow insensitive
375375
// way (ignoring stores that are obviously the only initializer to

0 commit comments

Comments
 (0)