[all-commits] [llvm/llvm-project] caff02: [lld] Silence compiler warnings by removing always...

mikaelholmen via All-commits all-commits at lists.llvm.org
Tue Feb 16 23:19:50 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: caff023b77995166c8f335ace3064c04f677cb9c
      https://github.com/llvm/llvm-project/commit/caff023b77995166c8f335ace3064c04f677cb9c
  Author: Mikael Holmen <mikael.holmen at ericsson.com>
  Date:   2021-02-17 (Wed, 17 Feb 2021)

  Changed paths:
    M lld/MachO/Arch/ARM64.cpp
    M lld/MachO/Arch/X86_64.cpp

  Log Message:
  -----------
  [lld] Silence compiler warnings by removing always true/false comparisons

type is an uint8_t so
 type >= 0
is always true and
 type < 0
is always false.




More information about the All-commits mailing list