Print more accurate warning message

This commit is contained in:
Konstantin Anisimov
2017-04-18 14:59:45 +07:00
committed by KonstantinAnisimov
parent 8db33dd530
commit 6d1a9b2420
@@ -64,7 +64,8 @@ internal class FunctionInlining(val context: Context): IrElementTransformerVoidW
val functionDeclaration = getFunctionDeclaration(irCall) // Get declaration of the function to be inlined.
if (functionDeclaration == null) { // We failed to get the declaration.
val message = "Inliner failed to obtain inline function declaration"
val message = "Inliner failed to obtain function declaration: " +
functionDescriptor.name.toString()
context.reportWarning(message, currentFile, irCall) // Report warning.
return irCall
}