[PATCH] D96069: [flang][msvc] Fix compilation of external-hello-world test with MSVC.

Michael Kruse via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Feb 4 12:53:41 PST 2021


Meinersbur added a comment.

Division by zero is undefined behavior <http://eel.is/c++draft/expr.pre#4>. I think this should use ,`std::numeric_limits<double>::infinity()` and `std::numeric_limits<double>::quiet_NaN()` (or the C macros `INFINITY` / NAN)


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D96069/new/

https://reviews.llvm.org/D96069



More information about the llvm-commits mailing list