[all-commits] [llvm/llvm-project] 5c3ef6: [lldb] Use llvm::bit_ceil (NFC) (#138723)

Kazu Hirata via All-commits all-commits at lists.llvm.org
Tue May 6 14:14:24 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 5c3ef62f64cc379b8c5a4cf23bcaf019d398fcc4
      https://github.com/llvm/llvm-project/commit/5c3ef62f64cc379b8c5a4cf23bcaf019d398fcc4
  Author: Kazu Hirata <kazu at google.com>
  Date:   2025-05-06 (Tue, 06 May 2025)

  Changed paths:
    M lldb/source/Breakpoint/WatchpointAlgorithms.cpp

  Log Message:
  -----------
  [lldb] Use llvm::bit_ceil (NFC) (#138723)

This patch replaces a local implementation of bit_ceil with
llvm::bit_ceil.  Technically, the local implementation evaluates to 0
on input 0, whereas llvm::bit_ceil evaluates to 1, but that doesn't
matter because we have:

  // Can't watch zero bytes.
  if (user_size == 0)
    return {};



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