makePass

Creates a DiagnosticPass instance from a KClass.

This is a simple helper to transform this into a diagnostic pass object to be used by the verifier. If the given class is a Kotlin singleton (object), it will use the KClass.objectInstance to retrieve the singleton pass instance, otherwise it will resort to using KClass.createInstance to create a new instance.