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.
Deallocation.allocatedValue
1 parent 26b2309 commit 72c1064Copy full SHA for 72c1064
SwiftCompilerSources/Sources/SIL/Instruction.swift
@@ -345,7 +345,14 @@ final public class UnimplementedRefCountingInst : RefCountingInst {}
345
// no-value deallocation instructions
346
//===----------------------------------------------------------------------===//
347
348
-public protocol Deallocation : Instruction { }
+public protocol Deallocation : Instruction {
349
+ var allocatedValue: Value { get }
350
+}
351
+
352
+extension Deallocation {
353
+ public var allocatedValue: Value { operands[0].value }
354
355
356
357
final public class DeallocStackInst : Instruction, UnaryInstruction, Deallocation {
358
public var allocstack: AllocStackInst {
0 commit comments