Ignore data flow info from assert calls

if assertions mode is not LEGACY.

This is done since assertions can be disabled (in both compile time and
runtime) and thus, the data flow info is not reliable anymore.
 #KT-24529: Fixed
This commit is contained in:
Ilmir Usmanov
2018-05-25 16:00:11 +03:00
parent 0cb73e55d0
commit df4dcc0f8e
9 changed files with 143 additions and 44 deletions
@@ -17,5 +17,8 @@ enum class JVMAssertionsMode(val description: String) {
@JvmStatic
fun fromStringOrNull(string: String?) = values().find { it.description == string }
@JvmStatic
fun fromString(string: String?) = fromStringOrNull(string) ?: DEFAULT
}
}