Skip to content

Commit b4648f1

Browse files
committed
[global-opt] Disable GlobalOpt when ownership is enabled.
1 parent 5dc6e22 commit b4648f1

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

lib/SILOptimizer/IPO/GlobalOpt.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -896,6 +896,11 @@ bool SILGlobalOpt::run() {
896896
if (!F.shouldOptimize())
897897
continue;
898898

899+
// TODO: Add support for ownership.
900+
if (F.hasOwnership()) {
901+
continue;
902+
}
903+
899904
// Cache cold blocks per function.
900905
ColdBlockInfo ColdBlocks(DA);
901906
for (auto &BB : F) {

0 commit comments

Comments
 (0)