Skip to content

Commit 53d8507

Browse files
committed
---
yaml --- r: 314350 b: refs/heads/master c: b6b61dd h: refs/heads/master
1 parent 72c99c1 commit 53d8507

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
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: e7c294a076b41a9c87be99bf28d91f864977012a
2+
refs/heads/master: b6b61ddd6a49c1e43715f5307b17cd4abe3c2024
33
refs/heads/master-next: 66a7e661ff8e88e2d4efab3e430197a7a941e352
44
refs/tags/osx-passed: b6b74147ef8a386f532cf9357a1bde006e552c54
55
refs/tags/swift-2.2-SNAPSHOT-2015-12-01-a: 6bb18e013c2284f2b45f5f84f2df2887dc0f7dea

trunk/lib/SILOptimizer/LoopTransforms/LICM.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -764,6 +764,11 @@ class LICM : public SILFunctionTransform {
764764

765765
void run() override {
766766
SILFunction *F = getFunction();
767+
768+
// If our function has ownership, skip it.
769+
if (F->hasOwnership())
770+
return;
771+
767772
SILLoopAnalysis *LA = PM->getAnalysis<SILLoopAnalysis>();
768773
SILLoopInfo *LoopInfo = LA->get(F);
769774

0 commit comments

Comments
 (0)