Skip to content

Commit a5c6156

Browse files
authored
Merge pull request #84045 from MAJKFL/new-sil-licm-pass-copy-ownership
Ownership support for LICM
2 parents 2b6ea81 + e84bc08 commit a5c6156

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)