summaryrefslogtreecommitdiffhomepage
path: root/ios
diff options
context:
space:
mode:
authorAndrej Mihajlov <and@mullvad.net>2020-08-13 15:26:54 +0200
committerAndrej Mihajlov <and@mullvad.net>2020-08-13 15:26:54 +0200
commitc50669c6a009f5b4ac6ec0e0f3dbd8b5647ace98 (patch)
tree70b9ab217ad9ef318b9eadd047344bbad2b2af5b /ios
parent6c4cfea7fd373579e604804eca66d3645a5421f2 (diff)
downloadmullvadvpn-c50669c6a009f5b4ac6ec0e0f3dbd8b5647ace98.tar.xz
mullvadvpn-c50669c6a009f5b4ac6ec0e0f3dbd8b5647ace98.zip
Fix Swift compiler segfault in release build
Diffstat (limited to 'ios')
-rw-r--r--ios/MullvadVPN/Operations/AssociatedValue.swift2
1 files changed, 1 insertions, 1 deletions
diff --git a/ios/MullvadVPN/Operations/AssociatedValue.swift b/ios/MullvadVPN/Operations/AssociatedValue.swift
index 0f197086de..6fc860dbf3 100644
--- a/ios/MullvadVPN/Operations/AssociatedValue.swift
+++ b/ios/MullvadVPN/Operations/AssociatedValue.swift
@@ -16,7 +16,7 @@ final class AssociatedValue<T>: NSObject {
}
class func get(object: Any, key: UnsafeRawPointer) -> T? {
- let container = objc_getAssociatedObject(object, key) as? Self
+ let container = objc_getAssociatedObject(object, key) as? AssociatedValue<T>
return container?.value
}