Uast: fix SOE in UVariableValue.create (EA-144064)

GitOrigin-RevId: b04c9f2b905a82abdf60fa1501780097077d50e4
This commit is contained in:
Nicolay Mitropolsky
2020-01-30 19:35:54 +00:00
committed by intellij-monorepo-bot
parent 1946a270a6
commit ec6d0d063d
@@ -81,7 +81,7 @@ class UVariableValue private constructor(
val constant = value.toConstant()
if (constant is UIntConstant && constant.type == UNumericType.INT) {
val castConstant = UIntConstant(constant.value, variable.type)
return create(variable, value.coerceConstant(castConstant), dependencies)
return UVariableValue(variable, value.coerceConstant(castConstant), dependencies)
}
}
}