We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
AccessBase.isLet
1 parent 345f9c1 commit 8f839f0Copy full SHA for 8f839f0
SwiftCompilerSources/Sources/Optimizer/Analysis/AliasAnalysis.swift
@@ -574,11 +574,7 @@ private enum MemoryLocation {
574
var isLetValue: Bool {
575
switch self {
576
case .memoryAddress(let addr):
577
- switch addr.accessBase {
578
- case .global(let global): return global.isLet
579
- case .class(let rea): return rea.fieldIsLet
580
- default: return false
581
- }
+ return addr.accessBase.isLet
582
case .modifyAccessScope:
583
return false
584
}
0 commit comments