[PATCH] D136078: Use-after-return sanitizer binary metadata

Dmitry Vyukov via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Nov 30 04:11:15 PST 2022


dvyukov added a comment.

PTAL

moved *.cpp tests to clang/test/
updated tests that hardcode pipeline passes
fixed metadata update

This did not work, it also changed all shared instances:

  const auto *NewMD = MDB.createPCSections(
      {{Section.getString(), {Features, IRB.getInt32(Size)}}});
  MD->replaceOperandWith(1, NewMD->getOperand(1));


so I changed it to:

  F.setMetadata(LLVMContext::MD_pcsections,
                MDB.createPCSections(
                    {{Section.getString(), {Features, IRB.getInt32(Size)}}}));


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D136078/new/

https://reviews.llvm.org/D136078



More information about the cfe-commits mailing list