[all-commits] [llvm/llvm-project] a81b64: [llvm] Use Optional::has_value instead of Optional...

kazutakahirata via All-commits all-commits at lists.llvm.org
Sun Jun 26 16:10:55 PDT 2022


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

  Changed paths:
    M llvm/include/llvm/DebugInfo/GSYM/FunctionInfo.h
    M llvm/include/llvm/MC/MCDwarf.h
    M llvm/include/llvm/MC/MCSectionXCOFF.h
    M llvm/include/llvm/MC/MCSymbolWasm.h
    M llvm/include/llvm/ObjectYAML/ELFYAML.h
    M llvm/include/llvm/Support/Casting.h
    M llvm/lib/Analysis/MemoryBuiltins.cpp
    M llvm/lib/Analysis/MemorySSA.cpp
    M llvm/lib/Analysis/StratifiedSets.h
    M llvm/lib/CodeGen/GlobalISel/CombinerHelper.cpp
    M llvm/lib/IR/LLVMContextImpl.cpp
    M llvm/lib/IR/Verifier.cpp
    M llvm/lib/MC/MCContext.cpp
    M llvm/lib/MC/MCDisassembler/MCDisassembler.cpp
    M llvm/lib/Transforms/Scalar/InductiveRangeCheckElimination.cpp
    M llvm/tools/llvm-exegesis/lib/MCInstrDescView.cpp

  Log Message:
  -----------
  [llvm] Use Optional::has_value instead of Optional::hasValue (NFC)

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




More information about the All-commits mailing list