[ValueTracking] Avoid use of ConstantExpr::getCast()

Use the constant folding API instead.

GitOrigin-RevId: 74ab4937c1ed2f156606f620b5eed758492673c7
1 file changed