Skip to content
This repository has been archived by the owner on Aug 10, 2021. It is now read-only.

Commit

Permalink
Fix for #1811
Browse files Browse the repository at this point in the history
  • Loading branch information
sbogolepov committed Aug 8, 2018
1 parent 2045951 commit c716a6e
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1045,7 +1045,9 @@ private fun ObjCExportCodeGenerator.createObjectInstanceAdapter(
return generateObjCToKotlinSyntheticGetter(selector) {
initRuntimeIfNeeded() // For instance methods it gets called when allocating.

val value = getObjectValue(context.ir.get(descriptor), shared = false, locationInfo = null, exceptionHandler = ExceptionHandler.Caller)
val irClass = context.ir.get(descriptor)
val shared = irClass.symbol.objectIsShared && context.config.threadsAreAllowed
val value = getObjectValue(irClass, shared = shared, locationInfo = null, exceptionHandler = ExceptionHandler.Caller)
ret(kotlinToObjC(value, ReferenceBridge))
}
}
Expand Down

0 comments on commit c716a6e

Please sign in to comment.