[all-commits] [llvm/llvm-project] 2b8e81: [libc][math] undef `iscanonical` before defining i...

Shourya Goel via All-commits all-commits at lists.llvm.org
Wed Oct 2 10:04:16 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 2b8e81ce919e8db857dc2ba20012e9020af07294
      https://github.com/llvm/llvm-project/commit/2b8e81ce919e8db857dc2ba20012e9020af07294
  Author: Shourya Goel <shouryagoel10000 at gmail.com>
  Date:   2024-10-02 (Wed, 02 Oct 2024)

  Changed paths:
    M libc/src/math/generic/iscanonical.cpp
    M libc/src/math/generic/iscanonicalf.cpp
    M libc/src/math/generic/iscanonicalf128.cpp
    M libc/src/math/generic/iscanonicalf16.cpp
    M libc/src/math/generic/iscanonicall.cpp

  Log Message:
  -----------
  [libc][math] undef `iscanonical` before defining it using `LLVM_LIBC_FUNCTION` macro (#110865)

It appears that #110565 fails because the macro definition of
iscanonical is included somewhere. This PR ensures that the macro
expands correctly and also removes the static_cast because implicit
conversion from bool to int is defined in C++.



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