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

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


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

Remove redundant copy parameter in lambda

Fixes #94233

>From 136ce343fbfb517610269cb803dd9beb00998915 Mon Sep 17 00:00:00 2001
From: AmrDeveloper <amr96 at programmer.net>
Date: Fri, 27 Sep 2024 19:06:39 +0200
Subject: [PATCH] [LLVM][NFC] Remove redundant copy parameter in lambda

---
 llvm/lib/Target/AArch64/AArch64MachineFunctionInfo.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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;
   }



More information about the llvm-commits mailing list