[all-commits] [llvm/llvm-project] c45695: [Metadata] Fix `addAnnotationMetadata` when append...

Zain Jaffal via All-commits all-commits at lists.llvm.org
Fri Jun 9 06:21:38 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: c45695ef46570409717ca53820e1b0f0e59792a1
      https://github.com/llvm/llvm-project/commit/c45695ef46570409717ca53820e1b0f0e59792a1
  Author: Zain Jaffal <z_jaffal at apple.com>
  Date:   2023-06-09 (Fri, 09 Jun 2023)

  Changed paths:
    M llvm/lib/IR/Metadata.cpp

  Log Message:
  -----------
  [Metadata] Fix `addAnnotationMetadata` when appending a string tuple to an existing MDTuple.

Currently if the MD_Annotation node containd a string node when we add a
string tuple node the string will not be preserved. This change fixes
that issue.

Reviewed By: fhahn

Differential Revision: https://reviews.llvm.org/D152448




More information about the All-commits mailing list