[all-commits] [llvm/llvm-project] 342328: [CLANG] Emit warning in finite math mode when INF ...

Zahira Ammarguellat via All-commits all-commits at lists.llvm.org
Thu Jul 25 09:32:56 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 342328db6b2a69cf59c01a6115b1baab925c0736
      https://github.com/llvm/llvm-project/commit/342328db6b2a69cf59c01a6115b1baab925c0736
  Author: Zahira Ammarguellat <zahira.ammarguellat at intel.com>
  Date:   2024-07-25 (Thu, 25 Jul 2024)

  Changed paths:
    M clang/lib/Sema/SemaChecking.cpp
    M clang/test/Headers/float.c
    M clang/test/Sema/warn-infinity-nan-disabled-lnx.cpp

  Log Message:
  -----------
  [CLANG] Emit warning in finite math mode when INF and NAN are used. (#99672)

In finite math mode when special math builtins `__builtin_inf` and
`__builtin_nan` are used a warning is emitted when the builtin is
expanded and at call point.
This warning at call point was missing for` __builtin_inf` and this
patch fixes the issue
(https://github.com/llvm/llvm-project/issues/98018).



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list