IR [minor]: do not assume that ktfile is always accessible
This commit is contained in:
+2
-2
@@ -772,8 +772,8 @@ private class TypeOperatorLowering(private val backendContext: JvmBackendContext
|
||||
return startOffset to endOffset
|
||||
}
|
||||
|
||||
private fun sourceViewFor(declaration: IrDeclaration): CharSequence =
|
||||
declaration.fileParent.getKtFile()!!.viewProvider.contents
|
||||
private fun sourceViewFor(declaration: IrDeclaration): CharSequence? =
|
||||
declaration.fileParent.getKtFile()?.viewProvider?.contents
|
||||
|
||||
private val throwTypeCastException: IrSimpleFunctionSymbol =
|
||||
backendContext.ir.symbols.throwTypeCastException
|
||||
|
||||
Reference in New Issue
Block a user