This is an archive of the discontinued LLVM Phabricator instance.

Fix unrepresentable float value in ScalarTest
ClosedPublic

Authored by teemperor on Jan 20 2018, 1:41 PM.

Details

Summary

float can't represent the given value in the literal, so we get this UB error: runtime error: 1.23457e+48 is outside the range of representable values of type 'float'. The test seems to not rely on this specific value, so let's just choose a smaller one that can be represented.

Diff Detail

Repository
rL LLVM

Event Timeline

teemperor created this revision.Jan 20 2018, 1:41 PM
This revision was not accepted when it landed; it landed in state Needs Review.Jan 22 2018, 12:13 AM
This revision was automatically updated to reflect the committed changes.