mirror of
https://github.com/intel/llvm.git
synced 2026-01-20 10:58:11 +08:00
This is another attempt at a change that Jean made to Phabricator in https://reviews.llvm.org/D116934. That attempt ran into problems with building on Windows. This change improves the messages that are produced when running into invalid arguments during constant folding. Note that the original attempt at implementing this contained additional code in .../llvm-project/flang/test/Evaluate/folding04.f90: ``` !WARN: warning: argument 'x' must be strictly positive real(8), parameter :: nan_r8_dlog1 = dlog(-0.1_8) TEST_ISNAN(nan_r8_dlog1) ``` For reasons I don't understand, this additional code caused the Windows build to fail. So this new version of the update does not contain that code.