[all-commits] [llvm/llvm-project] 14706d: [BOLT] Gadget scanner: use more appropriate types ...

Anatoly Trosinenko via All-commits all-commits at lists.llvm.org
Tue May 20 04:36:52 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 14706d6cdebf6f7660eec70399716eb90cbbffc2
      https://github.com/llvm/llvm-project/commit/14706d6cdebf6f7660eec70399716eb90cbbffc2
  Author: Anatoly Trosinenko <atrosinenko at accesssoftek.com>
  Date:   2025-05-20 (Tue, 20 May 2025)

  Changed paths:
    M bolt/include/bolt/Passes/PAuthGadgetScanner.h
    M bolt/lib/Passes/PAuthGadgetScanner.cpp

  Log Message:
  -----------
  [BOLT] Gadget scanner: use more appropriate types (NFC) (#135661)

* use more flexible `ArrayRef<T>` and `StringRef` types instead of
  `const std::vector<T> &` and `const std::string &`, correspondingly,
  for function arguments
* return plain `const SrcState &` instead of `ErrorOr<const SrcState &>`
  from `SrcSafetyAnalysis::getStateBefore`, as absent state is not
  handled gracefully by any caller



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