summaryrefslogtreecommitdiff
path: root/src/passes/DuplicateFunctionElimination.cpp
diff options
context:
space:
mode:
authorThomas Lively <tlively@google.com>2022-11-29 15:41:42 -0600
committerGitHub <noreply@github.com>2022-11-29 13:41:42 -0800
commit0c97bb81325ae29f53de9372adad2971d6ef9509 (patch)
treeddf3eaef6a89cad68ad59b63df3331665cdcc9c4 /src/passes/DuplicateFunctionElimination.cpp
parent2080165d06bce06f0ac3a3aa85f6a7a4c5e8ff04 (diff)
downloadbinaryen-0c97bb81325ae29f53de9372adad2971d6ef9509.tar.gz
binaryen-0c97bb81325ae29f53de9372adad2971d6ef9509.tar.bz2
binaryen-0c97bb81325ae29f53de9372adad2971d6ef9509.zip
[Parser] Do not assume `NAN` is positive (#5302)
It turns out that this assumption does not necessarily hold on Windows with Visual Studio 2019. Instead of using `NAN` and `-NAN`, explicitly construct positive and negative NaN values with `std::copysign`, which should be portable. Fixes #5291.
Diffstat (limited to 'src/passes/DuplicateFunctionElimination.cpp')
0 files changed, 0 insertions, 0 deletions