[llvm] 2122302 - [LLVM][AArch64][NFC] Remove redundant copy parameter in method (#110300)

via llvm-commits llvm-commits at lists.llvm.org
Wed Oct 16 01:54:12 PDT 2024


Author: Amr Hesham
Date: 2024-10-16T09:54:08+01:00
New Revision: 21223020ed1bb431d9812e11e0c45dcba5d31ff4

URL: https://github.com/llvm/llvm-project/commit/21223020ed1bb431d9812e11e0c45dcba5d31ff4
DIFF: https://github.com/llvm/llvm-project/commit/21223020ed1bb431d9812e11e0c45dcba5d31ff4.diff

LOG: [LLVM][AArch64][NFC] Remove redundant copy parameter in method (#110300)

Remove redundant copy parameter in method

Fixes #94233

Added: 
    

Modified: 
    llvm/lib/Target/AArch64/AArch64MachineFunctionInfo.h

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Target/AArch64/AArch64MachineFunctionInfo.h b/llvm/lib/Target/AArch64/AArch64MachineFunctionInfo.h
index 72f110cebbdc8f..85b9733e95c529 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