[clang] [NFC][Clang] Move set functions out BranchProtectionInfo. (PR #98451)

Nikita Popov via cfe-commits cfe-commits at lists.llvm.org
Thu Jul 11 06:12:48 PDT 2024


================
@@ -133,7 +133,7 @@ class AArch64TargetCodeGenInfo : public TargetCodeGenInfo {
       }
     }
     auto *Fn = cast<llvm::Function>(GV);
-    BPI.setFnAttributes(*Fn);
+    CGM.getTargetCodeGenInfo().setFnAttributes(BPI, *Fn);
----------------
nikic wrote:

```suggestion
    setFnAttributes(BPI, *Fn);
```
We're inside AArch64TargetCodeGenInfo here, so I think this is just a member function?

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


More information about the cfe-commits mailing list