Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ private extension Deallocation {

private extension DeallocStackInst {
func isStackDeallocation(of base: AccessBase) -> Bool {
if case .stack(let allocStack) = base, allocstack == allocStack {
if case .stack(let allocStack) = base, operand.value == allocStack {
return true
}
return false
Expand Down
6 changes: 1 addition & 5 deletions SwiftCompilerSources/Sources/SIL/Instruction.swift
Original file line number Diff line number Diff line change
Expand Up @@ -647,11 +647,7 @@ extension Deallocation {
}


final public class DeallocStackInst : Instruction, UnaryInstruction, Deallocation {
public var allocstack: AllocStackInst {
return operand.value as! AllocStackInst
}
}
final public class DeallocStackInst : Instruction, UnaryInstruction, Deallocation {}

final public class DeallocStackRefInst : Instruction, UnaryInstruction, Deallocation {
public var allocRef: AllocRefInstBase { operand.value as! AllocRefInstBase }
Expand Down