[all-commits] [llvm/llvm-project] da5a3c: [MC] Remove SMRange(std::nullopt_t) (#165832)

Kazu Hirata via All-commits all-commits at lists.llvm.org
Fri Oct 31 09:42:37 PDT 2025


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

  Changed paths:
    M llvm/include/llvm/MC/MCParser/MCAsmParser.h
    M llvm/include/llvm/Support/SMLoc.h
    M llvm/lib/FileCheck/FileCheckImpl.h
    M llvm/lib/MC/MCParser/AsmParser.cpp
    M llvm/lib/MC/MCParser/MasmParser.cpp
    M llvm/lib/Target/ARM/AsmParser/ARMAsmParser.cpp
    M llvm/lib/Target/X86/AsmParser/X86AsmParser.cpp
    M llvm/utils/TableGen/AsmMatcherEmitter.cpp

  Log Message:
  -----------
  [MC] Remove SMRange(std::nullopt_t) (#165832)

This patch removes SMRange(std::nullopt_t) to reduce the number of
uses of std::nullopt outside the context of std::optional.  Since
there are only a handful of uses, this patch removes the constructor
without going through deprecation.

The use of std::nullopt here has its root in llvm::None, which was
used as a convenient way to indicate "nothing" before we migrated
llvm::Optional to std::optional.



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