[PATCH] D108796: Copy Elementtype Attribute to IR at Link step

Nikita Popov via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Aug 27 00:52:21 PDT 2021


nikic added inline comments.


================
Comment at: llvm/lib/Linker/IRMover.cpp:653
          {Attribute::ByVal, Attribute::StructRet, Attribute::ByRef,
-          Attribute::InAlloca}) {
+          Attribute::InAlloca, Attribute::ElementType}) {
       if (Attrs.hasAttribute(i, TypedAttr)) {
----------------
You can use FirstTypeAttr and LastTypeAttr to generalize this.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D108796



More information about the llvm-commits mailing list