[llvm] [LLVM][NFC] Remove redundant copy parameter in lambda (PR #110300)

via llvm-commits llvm-commits at lists.llvm.org
Fri Sep 27 10:07:56 PDT 2024


llvmbot wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-backend-aarch64

Author: Amr Hesham (AmrDeveloper)

<details>
<summary>Changes</summary>

Remove redundant copy parameter in lambda

Fixes #<!-- -->94233

---
Full diff: https://github.com/llvm/llvm-project/pull/110300.diff


1 Files Affected:

- (modified) llvm/lib/Target/AArch64/AArch64MachineFunctionInfo.h (+1-1) 


``````````diff
diff --git a/llvm/lib/Target/AArch64/AArch64MachineFunctionInfo.h b/llvm/lib/Target/AArch64/AArch64MachineFunctionInfo.h
index 72f110cebbdc8f..275f9739c5e111 100644
--- a/llvm/lib/Target/AArch64/AArch64MachineFunctionInfo.h
+++ b/llvm/lib/Target/AArch64/AArch64MachineFunctionInfo.h
@@ -303,7 +303,7 @@ class AArch64FunctionInfo final : public MachineFunctionInfo {
   void setLocalStackSize(uint64_t Size) { LocalStackSize = Size; }
   uint64_t getLocalStackSize() const { return LocalStackSize; }
 
-  void setOutliningStyle(std::string Style) { OutliningStyle = Style; }
+  void setOutliningStyle(const std::string& Style) { OutliningStyle = Style; }
   std::optional<std::string> getOutliningStyle() const {
     return OutliningStyle;
   }

``````````

</details>


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


More information about the llvm-commits mailing list