[all-commits] [llvm/llvm-project] c1baf9: [ORC] Avoid invalidating iterators in EHFrameRegis...

lhames via All-commits all-commits at lists.llvm.org
Sun Apr 25 18:04:30 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: c1baf946e6cf611ae871e34db5cfea0f94f4b5a0
      https://github.com/llvm/llvm-project/commit/c1baf946e6cf611ae871e34db5cfea0f94f4b5a0
  Author: Lang Hames <lhames at gmail.com>
  Date:   2021-04-25 (Sun, 25 Apr 2021)

  Changed paths:
    M llvm/lib/ExecutionEngine/Orc/ObjectLinkingLayer.cpp

  Log Message:
  -----------
  [ORC] Avoid invalidating iterators in EHFrameRegistrationPlugin.

In EHFrameRegistrationPlugin::notifyTransferringResources if SrcKey had
eh-frames associated but DstKey did not we would create a new entry for DskKey,
invalidating the iterator for SrcKey in the process. This commit fixes that by
removing SrcKey first in this case.




More information about the All-commits mailing list