mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Swift SIL: let var UnaryInstruction.operand return an Operand and not a Value
To avoid confusion. Instead add specific getters for unary instructions with dedicated names. NFC
This commit is contained in:
@@ -14,7 +14,7 @@ import SIL
|
||||
|
||||
extension StructExtractInst : OnoneSimplifyable {
|
||||
func simplify(_ context: SimplifyContext) {
|
||||
guard let structInst = operand as? StructInst else {
|
||||
guard let structInst = self.struct as? StructInst else {
|
||||
return
|
||||
}
|
||||
context.tryReplaceRedundantInstructionPair(first: structInst, second: self,
|
||||
|
||||
Reference in New Issue
Block a user