Skip to content

Commit bf16a42

Browse files
authored
Merge pull request swiftlang#84398 from MAJKFL/bring-back-licm-ownership
Reintroduce licm support for ownership
2 parents 963aad3 + b12e0ef commit bf16a42

File tree

6 files changed

+287
-153
lines changed

6 files changed

+287
-153
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)