[all-commits] [llvm/llvm-project] 586fb8: [lld] Don't use Optional::hasValue (NFC)

kazutakahirata via All-commits all-commits at lists.llvm.org
Sun Jun 26 19:37:29 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 586fb81eee1fba4ca784d136f303b861c1dfd29c
      https://github.com/llvm/llvm-project/commit/586fb81eee1fba4ca784d136f303b861c1dfd29c
  Author: Kazu Hirata <kazu at google.com>
  Date:   2022-06-26 (Sun, 26 Jun 2022)

  Changed paths:
    M lld/ELF/InputFiles.cpp
    M lld/MachO/SectionPriorities.cpp
    M lld/wasm/InputChunks.h

  Log Message:
  -----------
  [lld] Don't use Optional::hasValue (NFC)

This patch replaces x.hasValue() with x where x is contextually
convertible to bool.




More information about the All-commits mailing list