Skip to content

Commit d2cd281

Browse files
committed
Revert "Merge pull request #84045 from MAJKFL/new-sil-licm-pass-copy-ownership"
This reverts commit a5c6156, reversing changes made to 2b6ea81.
1 parent f78a3c7 commit d2cd281

File tree

6 files changed

+152
-283
lines changed

6 files changed

+152
-283
lines changed

SwiftCompilerSources/Sources/Optimizer/FunctionPasses/InitializeStaticGlobals.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ private indirect enum GlobalInitValue {
225225
fatalError("cannot materialize undefined init value")
226226

227227
case .constant(let value):
228-
return cloner.cloneRecursively(globalInitValue: value)
228+
return cloner.cloneRecursivelyToGlobal(value: value)
229229

230230
case .aggregate(let fields):
231231
if type.isStruct {

0 commit comments

Comments
 (0)