libswift: implement ReleaseDevirtualizer in Swift

This commit is contained in:
Max Desiatov
2022-01-17 16:09:08 +00:00
parent 7d961001d3
commit b964dba177
20 changed files with 243 additions and 62 deletions

View File

@@ -58,3 +58,7 @@ final class Undef : Value {
final class PlaceholderValue : Value {
public var definingInstruction: Instruction? { nil }
}
extension OptionalBridgedValue {
var value: Value? { obj.getAs(AnyObject.self) as? Value }
}