[all-commits] [llvm/llvm-project] b22ea2: [lldb] Use SmallVector::erase correctly

Pavel Labath via All-commits all-commits at lists.llvm.org
Fri Jun 28 01:40:47 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: b22ea2dc1e065f14a88df44e22a62427965a9b05
      https://github.com/llvm/llvm-project/commit/b22ea2dc1e065f14a88df44e22a62427965a9b05
  Author: Pavel Labath <pavel at labath.sk>
  Date:   2024-06-28 (Fri, 28 Jun 2024)

  Changed paths:
    M lldb/source/Utility/Broadcaster.cpp

  Log Message:
  -----------
  [lldb] Use SmallVector::erase correctly

erase() invalidates the iterator, we must use the returned iterator to
continue iterating.

This does not actually make a difference with the current implementation
of SmallVector (erase will effectively return the same pointer), but it
avoids future confusion.



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