Skip to content

Commit 38f28c1

Browse files
committed
Reapply "Merge pull request swiftlang#84045 from MAJKFL/new-sil-licm-pass-copy-ownership"
This reverts commit d2cd281.
1 parent d2cd281 commit 38f28c1

File tree

6 files changed

+283
-152
lines changed

6 files changed

+283
-152
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.cloneRecursivelyToGlobal(value: value)
228+
return cloner.cloneRecursively(globalInitValue: value)
229229

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

0 commit comments

Comments
 (0)