[clang] [llvm] [ARM][AArch64] BTI, GCS, PAC Module flag update. (PR #86212)

Andrew Savonichev via llvm-commits llvm-commits at lists.llvm.org
Sat Sep 20 03:25:27 PDT 2025


================
@@ -1770,6 +1775,11 @@ IRMover::IRMover(Module &M) : Composite(M) {
   for (const auto *MD : StructTypes.getVisitedMetadata()) {
     SharedMDs[MD].reset(const_cast<MDNode *>(MD));
   }
+
+  // Convert module level attributes to function level attributes because
+  // after merging modules the attributes might change and would have different
+  // effect on the functions as the original module would have.
+  CopyModuleAttrToFunctions(M);
----------------
asavonic wrote:

Is the module here different from the module that we upgrade in `IRLinker::run`?

https://github.com/llvm/llvm-project/pull/86212


More information about the llvm-commits mailing list