[all-commits] [llvm/llvm-project] d36dda: [compiler-rt] Fix a warning

Kazu Hirata via All-commits all-commits at lists.llvm.org
Fri Oct 20 23:04:13 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: d36ddaa665823de9e922923b0d2b7fd254759816
      https://github.com/llvm/llvm-project/commit/d36ddaa665823de9e922923b0d2b7fd254759816
  Author: Kazu Hirata <kazu at google.com>
  Date:   2023-10-20 (Fri, 20 Oct 2023)

  Changed paths:
    M compiler-rt/lib/builtins/int_to_fp.h

  Log Message:
  -----------
  [compiler-rt] Fix a warning

This patch fixes:

  compiler-rt/lib/builtins/int_to_fp_impl.inc:22:18: error: expression
  is not an integer constant expression; folding it to a constant is a
  GNU extension [-Werror,-Wgnu-folding-constant]

by using enum for constants.




More information about the All-commits mailing list