[all-commits] [llvm/llvm-project] 6ee9d9: [lldb] Fix mod-while-iteration in IRForTarget (#20...

Raphael Isemann via All-commits all-commits at lists.llvm.org
Wed Jun 10 11:06:17 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 6ee9d90c58c4c7194f3a552e01a3e44c376cdfbe
      https://github.com/llvm/llvm-project/commit/6ee9d90c58c4c7194f3a552e01a3e44c376cdfbe
  Author: Raphael Isemann <rise at apple.com>
  Date:   2026-06-10 (Wed, 10 Jun 2026)

  Changed paths:
    M lldb/source/Plugins/ExpressionParser/Clang/IRForTarget.cpp

  Log Message:
  -----------
  [lldb] Fix mod-while-iteration in IRForTarget (#203035)

We modify the IR module here while iterating over it. Use the usual list
trick to delay modification until after the loop.

This was uncovered by bccd1b9cb744e5dd96ee59baa4bf4583457feea3



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