[all-commits] [llvm/llvm-project] 1e2a4c: [CLANG] Add warning when INF or NAN are used in a ...

Zahira Ammarguellat via All-commits all-commits at lists.llvm.org
Mon Jan 22 11:38:42 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 1e2a4ccb6237b6db9db7dc3fd11a94410ec9b0df
      https://github.com/llvm/llvm-project/commit/1e2a4ccb6237b6db9db7dc3fd11a94410ec9b0df
  Author: Zahira Ammarguellat <zahira.ammarguellat at intel.com>
  Date:   2024-01-22 (Mon, 22 Jan 2024)

  Changed paths:
    M clang/docs/ReleaseNotes.rst
    M clang/include/clang/Basic/DiagnosticCommonKinds.td
    M clang/include/clang/Lex/Preprocessor.h
    M clang/include/clang/Sema/Sema.h
    M clang/lib/Lex/Preprocessor.cpp
    M clang/lib/Sema/SemaChecking.cpp
    A clang/test/Sema/warn-infinity-nan-disabled-lnx.cpp
    A clang/test/Sema/warn-infinity-nan-disabled-win.cpp

  Log Message:
  -----------
  [CLANG] Add warning when INF or NAN are used in a binary operation or as function argument in fast math mode. (#76873)

Check for operations using INF or NaN when in ffast-math mode and
generate a warning.




More information about the All-commits mailing list